Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) 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_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002033/0.002032, allocations: 203.3 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.772/2.772, allocations: 226.5 MB / 245.3 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001224/0.001224, allocations: 106.9 kB / 297.4 MB, free: 6.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003786, allocations: 4 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4637/0.4641, allocations: 51.29 MB / 408.7 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1951/0.6592, allocations: 84.22 MB / 492.9 MB, free: 7.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003932/0.6597, allocations: 79.95 kB / 493 MB, free: 7.254 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04958/0.7093, allocations: 10.35 MB / 0.4915 GB, free: 12.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.7094, allocations: 0 / 0.4915 GB, free: 12.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.642e-05/0.7094, allocations: 8.219 kB / 0.4915 GB, free: 12.85 MB / 378.7 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.001749/0.7112, allocations: 0.6566 MB / 0.4922 GB, free: 12.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/0.7113, allocations: 12.03 kB / 0.4922 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.7114, allocations: 44.38 kB / 0.4922 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007552/0.7122, allocations: 328.5 kB / 0.4925 GB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.7123, allocations: 20.94 kB / 0.4925 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.455e-05/0.7124, allocations: 28.36 kB / 0.4926 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008207/0.7132, allocations: 291.6 kB / 0.4929 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.288e-05/0.7133, allocations: 8.078 kB / 0.4929 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.564e-05/0.7133, allocations: 15.94 kB / 0.4929 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.7134, allocations: 8 kB / 0.4929 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000635/0.714, allocations: 178.1 kB / 0.4931 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002542/0.7166, allocations: 0.8562 MB / 0.4939 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009962/0.7176, allocations: 260 kB / 0.4941 GB, free: 9.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003628/0.718, allocations: 101.4 kB / 0.4942 GB, free: 9.879 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-05/0.7181, allocations: 8.266 kB / 0.4942 GB, free: 9.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000527/0.7186, allocations: 167.2 kB / 0.4944 GB, free: 9.699 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 5.24e-06/0.7186, allocations: 0 / 0.4944 GB, free: 9.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.004233/0.7229, allocations: 1.324 MB / 0.4957 GB, free: 8.262 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.7231, allocations: 191.9 kB / 0.4959 GB, free: 8.031 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007153/0.7238, allocations: 328.5 kB / 0.4962 GB, free: 7.703 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.7239, allocations: 37.7 kB / 0.4962 GB, free: 7.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.7241, allocations: 180.6 kB / 0.4964 GB, free: 7.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.7243, allocations: 145.9 kB / 0.4965 GB, free: 7.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.7244, allocations: 12 kB / 0.4965 GB, free: 7.324 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.7246, allocations: 350.8 kB / 0.4969 GB, free: 6.973 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003305/0.725, allocations: 92.83 kB / 0.497 GB, free: 6.883 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.7254, allocations: 177.2 kB / 0.4971 GB, free: 6.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008095/0.7262, allocations: 254.2 kB / 0.4974 GB, free: 6.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.7263, allocations: 0 / 0.4974 GB, free: 6.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00113/0.7274, allocations: 358.3 kB / 0.4977 GB, free: 6.051 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.7275, allocations: 12 kB / 0.4977 GB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.7275, allocations: 4 kB / 0.4977 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/0.7277, allocations: 24.84 kB / 0.4978 GB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006045/0.7283, allocations: 83.89 kB / 0.4978 GB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001801/0.7301, allocations: 1.284 MB / 0.4991 GB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.7305, allocations: 16.03 kB / 0.4991 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.7305, allocations: 8 kB / 0.4991 GB, free: 4.484 MB / 378.7 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 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004032/0.7309, allocations: 172.1 kB / 0.4993 GB, free: 4.309 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.7311, allocations: 39.53 kB / 0.4993 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.7322, allocations: 353.8 kB / 0.4997 GB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.7322, allocations: 4 kB / 0.4997 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.7322, allocations: 4.062 kB / 0.4997 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001175/0.7334, allocations: 0.6645 MB / 0.5003 GB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002405/0.7358, allocations: 0.8757 MB / 0.5012 GB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.7359, allocations: 0 / 0.5012 GB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006318/0.7365, allocations: 83.89 kB / 0.5013 GB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.341e-05/0.7365, allocations: 3.984 kB / 0.5013 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.415e-05/0.7366, allocations: 11.94 kB / 0.5013 GB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.387e-06/0.7366, allocations: 4 kB / 0.5013 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.7366, allocations: 0 / 0.5013 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.7381, allocations: 0.561 MB / 0.5018 GB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002921/0.7384, allocations: 144.7 kB / 0.502 GB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-05/0.7385, allocations: 15.94 kB / 0.502 GB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003464/0.7389, allocations: 16 kB / 0.502 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.739, allocations: 27.95 kB / 0.502 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/0.7391, allocations: 16 kB / 0.502 GB, free: 1.266 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000482/0.7396, allocations: 235 kB / 0.5023 GB, free: 1.039 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.595e-06/0.7396, allocations: 0 / 0.5023 GB, free: 1.039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008482/0.7405, allocations: 112.5 kB / 0.5024 GB, free: 0.9297 MB / 378.7 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 (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001834/0.7423, allocations: 448.1 kB / 0.5028 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.7437, allocations: 366.2 kB / 0.5031 GB, free: 264 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.7437, allocations: 0 / 0.5031 GB, free: 264 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.7441, allocations: 139.8 kB / 0.5033 GB, free: 124 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.7453, allocations: 96.98 kB / 0.5034 GB, free: 32 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3838/1.129, allocations: 1.281 MB / 0.5046 GB, free: 93.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007627/1.13, allocations: 0.8065 MB / 0.5054 GB, free: 92.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/1.13, allocations: 38.22 kB / 0.5054 GB, free: 92.85 MB / 378.7 MB Notification: Performance of SimCode: time 1.874e-06/1.13, allocations: 0 / 0.5054 GB, free: 92.85 MB / 378.7 MB Notification: Performance of Templates: time 0.02179/1.152, allocations: 5.766 MB / 0.5111 GB, free: 92.48 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches