Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009567/0.0009567, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 223.3 MB / 241.4 MB, free: 11.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008842/0.0008842, allocations: 94.25 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003322, allocations: 11.94 kB / 352.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2427, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0865/0.3292, allocations: 77.11 MB / 479.9 MB, free: 3.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.3295, allocations: 75.97 kB / 479.9 MB, free: 3.176 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003615/0.3331, allocations: 1.432 MB / 481.4 MB, free: 1.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3332, allocations: 3.938 kB / 481.4 MB, free: 1.746 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.3332, allocations: 4 kB / 481.4 MB, free: 1.742 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004644/0.3337, allocations: 371.2 kB / 481.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.3337, allocations: 12.03 kB / 481.7 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.3338, allocations: 8.844 kB / 481.8 MB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.334, allocations: 204 kB / 482 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.334, allocations: 4.375 kB / 482 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.616e-05/0.334, allocations: 4.375 kB / 482 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003869/0.3344, allocations: 166.4 kB / 482.1 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3344, allocations: 192 / 482.1 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.3345, allocations: 7.938 kB / 482.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3345, allocations: 4 kB / 482.1 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.3346, allocations: 39.92 kB / 482.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005249/0.3351, allocations: 369.9 kB / 482.5 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.3354, allocations: 119.8 kB / 482.7 MB, free: 272 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3355, allocations: 58.67 kB / 482.7 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.3355, allocations: 7.938 kB / 482.7 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.3356, allocations: 34.72 kB / 482.8 MB, free: 152 kB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 2.985e-06/0.3356, allocations: 0 / 482.8 MB, free: 152 kB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003191/0.3359, allocations: 137.6 kB / 482.9 MB, free: 8 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.336, allocations: 115.1 kB / 483 MB, free: 15.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.3361, allocations: 136.6 kB / 483.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.3361, allocations: 25.7 kB / 483.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.497e-05/0.3362, allocations: 96.06 kB / 483.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.3362, allocations: 7.906 kB / 483.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.3362, allocations: 4 kB / 483.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.3364, allocations: 318.8 kB / 483.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.717e-05/0.3364, allocations: 16 kB / 483.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.111e-05/0.3365, allocations: 71.66 kB / 483.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.3366, allocations: 108.7 kB / 483.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3366, allocations: 4 kB / 483.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001746/0.3368, allocations: 105.4 kB / 483.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3368, allocations: 8 kB / 483.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3369, allocations: 0 / 483.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.3369, allocations: 8.281 kB / 483.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.05e-05/0.337, allocations: 20.17 kB / 483.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.337, allocations: 7.938 kB / 483.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.477e-05/0.337, allocations: 7.938 kB / 483.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.3371, allocations: 4 kB / 483.9 MB, free: 14.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.3372, allocations: 129.8 kB / 484.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.3373, allocations: 81.53 kB / 484.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.601e-05/0.3374, allocations: 16.72 kB / 484.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3374, allocations: 4 kB / 484.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3374, allocations: 0 / 484.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3374, allocations: 0 / 484.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002644/0.3377, allocations: 197.4 kB / 484.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3377, allocations: 0 / 484.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-05/0.3378, allocations: 16 kB / 484.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3378, allocations: 3.984 kB / 484.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.3378, allocations: 8 kB / 484.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.3378, allocations: 3.984 kB / 484.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3378, allocations: 0 / 484.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003974/0.3382, allocations: 320.2 kB / 484.7 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.229e-05/0.3383, allocations: 93 kB / 484.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.3383, allocations: 11.94 kB / 484.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.181e-05/0.3384, allocations: 7.984 kB / 484.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.585e-05/0.3385, allocations: 4 kB / 484.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.3385, allocations: 4 kB / 484.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.837e-05/0.3386, allocations: 109.6 kB / 484.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3386, allocations: 0 / 484.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000255/0.3388, allocations: 12 kB / 484.9 MB, free: 13.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001086/0.3389, allocations: 99.19 kB / 485 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000163/0.3391, allocations: 63.91 kB / 485.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3391, allocations: 0 / 485.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.819e-05/0.3392, allocations: 15.94 kB / 485.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.3396, allocations: 44.66 kB / 485.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003918/0.34, allocations: 236.7 kB / 485.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.3403, allocations: 0.7043 MB / 486.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.148e-05/0.3403, allocations: 4.766 kB / 486.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.76e-05/0.3404, allocations: 19.36 kB / 486.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3404, allocations: 0 / 486.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of Templates: time 0.002651/0.343, allocations: 0.594 MB / 486.7 MB, free: 11.91 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches