Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009374/0.0009374, allocations: 94.2 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 202.4 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.7 MB / 247.5 MB, free: 9.477 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002655, allocations: 8 kB / 308.4 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1028, allocations: 51.52 MB / 359.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.003765/0.1066, allocations: 2.684 MB / 362.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00273/0.1093, allocations: 1.321 MB / 363.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004044/0.1098, allocations: 7.938 kB / 363.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006091/0.1104, allocations: 123.5 kB / 364 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007657/0.1112, allocations: 179.1 kB / 364.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.1117, allocations: 119.8 kB / 364.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006889/0.1124, allocations: 425.9 kB / 364.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.1127, allocations: 99.05 kB / 364.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.113, allocations: 159.3 kB / 365 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.1133, allocations: 179.1 kB / 365.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.974e-05/0.1134, allocations: 16 kB / 365.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.1136, allocations: 51.97 kB / 365.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.1137, allocations: 67.75 kB / 365.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.114, allocations: 204.6 kB / 365.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.1144, allocations: 327.3 kB / 365.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1144, allocations: 0 / 365.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1144, allocations: 3.938 kB / 365.8 MB, free: 7.078 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.1144, allocations: 0 / 365.8 MB, free: 7.078 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.00115/0.1156, allocations: 0.6169 MB / 366.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1156, allocations: 8.031 kB / 366.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.1158, allocations: 48.47 kB / 366.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004444/0.1162, allocations: 328.4 kB / 366.8 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.1162, allocations: 20.94 kB / 366.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.1163, allocations: 32.12 kB / 366.9 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005307/0.1168, allocations: 291.1 kB / 367.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.1169, allocations: 0 / 367.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.1169, allocations: 12 kB / 367.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1169, allocations: 8 kB / 367.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003736/0.1173, allocations: 178.1 kB / 367.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.1188, allocations: 0.8405 MB / 368.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005622/0.1194, allocations: 271 kB / 368.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.1196, allocations: 93.39 kB / 368.6 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.1197, allocations: 8.266 kB / 368.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.12, allocations: 158.6 kB / 368.7 MB, free: 4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 2.685e-06/0.12, allocations: 0 / 368.7 MB, free: 4 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002438/0.1225, allocations: 1.32 MB / 370 MB, free: 2.566 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.704e-05/0.1226, allocations: 183.9 kB / 370.2 MB, free: 2.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.123, allocations: 336.5 kB / 370.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.123, allocations: 33.69 kB / 370.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.1232, allocations: 192.6 kB / 370.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.1233, allocations: 141.9 kB / 370.9 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.1234, allocations: 37.7 kB / 370.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1235, allocations: 346.8 kB / 371.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.1237, allocations: 84.84 kB / 371.4 MB, free: 1.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.1239, allocations: 185.3 kB / 371.5 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.1243, allocations: 242.2 kB / 371.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1243, allocations: 0 / 371.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006365/0.125, allocations: 362.5 kB / 372.1 MB, free: 340 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.125, allocations: 4 kB / 372.1 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.125, allocations: 0 / 372.1 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001308/0.1252, allocations: 20.84 kB / 372.2 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003532/0.1255, allocations: 87.84 kB / 372.2 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1878/0.3134, allocations: 1.287 MB / 373.5 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005534/0.314, allocations: 14.98 kB / 373.5 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.426e-05/0.3141, allocations: 12.34 kB / 373.6 MB, free: 17.76 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004648/0.3146, allocations: 169.1 kB / 373.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.3148, allocations: 41.53 kB / 373.8 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001697/0.315, allocations: 47.97 kB / 373.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.315, allocations: 4.719 kB / 373.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.315, allocations: 0.5625 kB / 373.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009046/0.3159, allocations: 0.6607 MB / 374.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.3179, allocations: 0.8451 MB / 375.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.318, allocations: 0.7188 kB / 375.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004829/0.3185, allocations: 78.62 kB / 375.4 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.55e-05/0.3185, allocations: 7.281 kB / 375.4 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.3185, allocations: 17.83 kB / 375.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.3186, allocations: 3.719 kB / 375.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3186, allocations: 1.312 kB / 375.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.3197, allocations: 0.5485 MB / 376 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.32, allocations: 136.6 kB / 376.1 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-05/0.3201, allocations: 14.98 kB / 376.1 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004088/0.3205, allocations: 16.47 kB / 376.1 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.767e-05/0.3207, allocations: 24.33 kB / 376.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-05/0.3207, allocations: 13.98 kB / 376.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004752/0.3212, allocations: 241.4 kB / 376.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3212, allocations: 4.188 kB / 376.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007677/0.322, allocations: 92.67 kB / 376.5 MB, free: 16.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001464/0.3235, allocations: 413.3 kB / 376.9 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.3246, allocations: 380.7 kB / 377.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/0.3246, allocations: 3 kB / 377.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.325, allocations: 131.9 kB / 377.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.3261, allocations: 102.6 kB / 377.5 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.3288, allocations: 1.315 MB / 378.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.3291, allocations: 0.8044 MB / 379.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.3293, allocations: 35.88 kB / 379.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3293, allocations: 0 / 379.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of Templates: time 0.01521/0.3445, allocations: 5.672 MB / 385.3 MB, free: 13.71 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches