Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.007007/0.007007, allocations: 109.8 kB / 21.98 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 220.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 230.5 MB / 258.9 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2272/0.2272, allocations: 46.93 MB / 362.3 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 79.86 kB / 0.4982 GB, free: 7.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3238, allocations: 66.07 MB / 0.5627 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.001664/0.3254, allocations: 0.5022 MB / 0.5632 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000389/0.3258, allocations: 103.6 kB / 0.5633 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.146e-05/0.3259, allocations: 4 kB / 0.5633 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.3259, allocations: 0 / 0.5633 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.3261, allocations: 19.92 kB / 0.5633 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.812e-05/0.3261, allocations: 0 / 0.5633 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.833e-05/0.3262, allocations: 4 kB / 0.5633 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.935e-05/0.3262, allocations: 3.984 kB / 0.5633 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.358e-05/0.3262, allocations: 8 kB / 0.5633 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.33e-05/0.3263, allocations: 7.875 kB / 0.5633 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.398e-06/0.3263, allocations: 0 / 0.5633 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.601e-05/0.3264, allocations: 23.97 kB / 0.5634 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.826e-06/0.3264, allocations: 0 / 0.5634 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.724e-05/0.3264, allocations: 3.938 kB / 0.5634 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 8.577e-05/0.3265, allocations: 27.62 kB / 0.5634 GB, free: 3.543 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3265, allocations: 0 / 0.5634 GB, free: 3.543 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3265, allocations: 0 / 0.5634 GB, free: 3.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3265, allocations: 0 / 0.5634 GB, free: 3.543 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003392/0.3268, allocations: 245.1 kB / 0.5636 GB, free: 3.273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.3269, allocations: 12.03 kB / 0.5636 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.988e-05/0.3269, allocations: 0.9375 kB / 0.5636 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.327, allocations: 106.5 kB / 0.5637 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.327, allocations: 4.375 kB / 0.5638 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.3271, allocations: 384 / 0.5638 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.3272, allocations: 42.25 kB / 0.5638 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.3272, allocations: 192 / 0.5638 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.3272, allocations: 3.938 kB / 0.5638 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3272, allocations: 0 / 0.5638 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.172e-05/0.3272, allocations: 7.938 kB / 0.5638 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001706/0.3274, allocations: 128.8 kB / 0.5639 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.3276, allocations: 42.55 kB / 0.564 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.793e-05/0.3276, allocations: 12.86 kB / 0.564 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/0.3279, allocations: 32.05 kB / 0.564 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.328, allocations: 38.56 kB / 0.564 GB, free: 2.758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.328, allocations: 0 / 0.564 GB, free: 2.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.001263/0.3292, allocations: 201.2 kB / 0.5642 GB, free: 2.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.368e-05/0.3293, allocations: 51.41 kB / 0.5643 GB, free: 2.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.762e-05/0.3294, allocations: 101.8 kB / 0.5644 GB, free: 2.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.3294, allocations: 25.7 kB / 0.5644 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.3295, allocations: 84.27 kB / 0.5645 GB, free: 2.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.3296, allocations: 11.91 kB / 0.5645 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.3296, allocations: 21.7 kB / 0.5645 GB, free: 2.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3297, allocations: 310.8 kB / 0.5648 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.337e-05/0.3298, allocations: 19.98 kB / 0.5648 GB, free: 1.895 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.945e-05/0.3299, allocations: 19.97 kB / 0.5649 GB, free: 1.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.33, allocations: 44.84 kB / 0.5649 GB, free: 1.828 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.33, allocations: 0 / 0.5649 GB, free: 1.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001969/0.3302, allocations: 77.66 kB / 0.565 GB, free: 1.746 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3303, allocations: 10.44 kB / 0.565 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3303, allocations: 0 / 0.565 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3303, allocations: 3.938 kB / 0.565 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.3304, allocations: 15.98 kB / 0.565 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.3304, allocations: 0 / 0.565 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.667e-05/0.3305, allocations: 11.98 kB / 0.565 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.3305, allocations: 4 kB / 0.565 GB, free: 1.703 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.578e-05/0.3306, allocations: 109.8 kB / 0.5651 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.3306, allocations: 7.891 kB / 0.5651 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002549/0.3309, allocations: 85.55 kB / 0.5652 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3309, allocations: 0 / 0.5652 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3309, allocations: 8 kB / 0.5652 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3309, allocations: 7.938 kB / 0.5652 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007047/0.3316, allocations: 322.7 kB / 0.5655 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3316, allocations: 0 / 0.5655 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.893e-05/0.3317, allocations: 19.92 kB / 0.5656 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3317, allocations: 32 / 0.5656 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3317, allocations: 8 kB / 0.5656 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3317, allocations: 0 / 0.5656 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3317, allocations: 48 / 0.5656 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.3319, allocations: 180.3 kB / 0.5657 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.307e-06/0.332, allocations: 7.953 kB / 0.5657 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.332, allocations: 7.938 kB / 0.5657 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.3321, allocations: 7.984 kB / 0.5658 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.51e-05/0.3321, allocations: 15.88 kB / 0.5658 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.3321, allocations: 0 / 0.5658 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.737e-05/0.3321, allocations: 75.28 kB / 0.5658 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3321, allocations: 0 / 0.5658 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.3324, allocations: 15.92 kB / 0.5659 GB, free: 0.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001424/0.3325, allocations: 95.34 kB / 0.566 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002198/0.3327, allocations: 55.89 kB / 0.566 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3327, allocations: 0 / 0.566 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.576e-05/0.3328, allocations: 27.92 kB / 0.566 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.333, allocations: 0 / 0.566 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005814/0.3336, allocations: 159.6 kB / 0.5662 GB, free: 380 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.334, allocations: 0.6768 MB / 0.5668 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.334, allocations: 11.44 kB / 0.5669 GB, free: 15.66 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.334, allocations: 0 / 0.5669 GB, free: 15.66 MB / 414.1 MB Notification: Performance of Templates: time 0.002422/0.3364, allocations: 0.6723 MB / 0.5675 GB, free: 14.98 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.12985102692619]