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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009571/0.0009571, allocations: 140.3 kB / 24.89 MB, free: 9.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9867/0.9867, allocations: 173.3 MB / 201.5 MB, free: 9.168 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,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=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 268.5 MB, free: 6.105 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.027e-05/2.156e-05, allocations: 2.312 kB / 268.5 MB, free: 6.102 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.002316/0.002338, allocations: 1.773 MB / 270.3 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004481/0.002786, allocations: 167.3 kB / 270.5 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.155e-05/0.002877, allocations: 3.938 kB / 270.5 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.482e-05/0.002932, allocations: 7.922 kB / 270.5 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.003118, allocations: 15.94 kB / 270.5 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.00335, allocations: 51.7 kB / 270.5 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.003463, allocations: 55.83 kB / 270.6 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.225e-05/0.003555, allocations: 15.98 kB / 270.6 MB, free: 4 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.214e-05/0.003617, allocations: 35.91 kB / 270.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.746e-05/0.003675, allocations: 19.91 kB / 270.7 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.003695, allocations: 4 kB / 270.7 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.294e-05/0.003708, allocations: 4 kB / 270.7 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.899e-05/0.003757, allocations: 19.92 kB / 270.7 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.675e-05/0.003784, allocations: 19.92 kB / 270.7 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.003898, allocations: 51.75 kB / 270.8 MB, free: 3.848 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.283e-06/0.003899, allocations: 4 kB / 270.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.0039, allocations: 0 / 270.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.003903, allocations: 0 / 270.8 MB, free: 3.844 MB / 250.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.0003409/0.004244, allocations: 284.5 kB / 271 MB, free: 3.539 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.004279, allocations: 8.922 kB / 271.1 MB, free: 3.531 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.004315, allocations: 16.92 kB / 271.1 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.00449, allocations: 140.5 kB / 271.2 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.004502, allocations: 12.31 kB / 271.2 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.004512, allocations: 4.375 kB / 271.2 MB, free: 3.34 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002222/0.004734, allocations: 147 kB / 271.4 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.004744, allocations: 192 / 271.4 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.004754, allocations: 8.375 kB / 271.4 MB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-06/0.004762, allocations: 4.359 kB / 271.4 MB, free: 3.16 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.465e-05/0.004797, allocations: 19.88 kB / 271.4 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002576/0.005054, allocations: 245.2 kB / 271.6 MB, free: 2.879 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.005208, allocations: 95.69 kB / 271.7 MB, free: 2.758 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.991e-05/0.005248, allocations: 26.64 kB / 271.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.005267, allocations: 11.92 kB / 271.8 MB, free: 2.711 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.005296, allocations: 42.56 kB / 271.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.163e-06/0.005297, allocations: 0 / 271.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001678/0.005465, allocations: 77.69 kB / 271.9 MB, free: 2.578 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.00553, allocations: 114.8 kB / 272 MB, free: 2.441 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.52e-05/0.005616, allocations: 130.7 kB / 272.1 MB, free: 2.301 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.005628, allocations: 33.95 kB / 272.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.706e-05/0.005665, allocations: 80.14 kB / 272.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.005682, allocations: 15.92 kB / 272.3 MB, free: 2.164 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.005711, allocations: 17.67 kB / 272.3 MB, free: 2.141 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.03e-05/0.005801, allocations: 310.8 kB / 272.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.665e-06/0.005809, allocations: 0 / 272.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.541e-05/0.005824, allocations: 13.72 kB / 272.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.944e-05/0.005854, allocations: 21.69 kB / 272.6 MB, free: 1.781 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.005855, allocations: 3.938 kB / 272.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.473e-05/0.00591, allocations: 49.7 kB / 272.7 MB, free: 1.723 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.005924, allocations: 7.984 kB / 272.7 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.005928, allocations: 0 / 272.7 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.005945, allocations: 3.938 kB / 272.7 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.325e-05/0.005978, allocations: 4 kB / 272.7 MB, free: 1.707 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.005981, allocations: 0 / 272.7 MB, free: 1.707 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.006, allocations: 4 kB / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-06/0.006004, allocations: 0 / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 6.697e-05/0.006071, allocations: 116.6 kB / 272.8 MB, free: 1.578 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.423e-05/0.006146, allocations: 61.73 kB / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.006182, allocations: 8.781 kB / 272.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.006187, allocations: 7.938 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.006191, allocations: 4 kB / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.006194, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.006355, allocations: 81.81 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.006359, allocations: 7.969 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.551e-05/0.006414, allocations: 20 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.006416, allocations: 0 / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.006422, allocations: 7.938 kB / 273 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.006424, allocations: 0 / 273 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.006427, allocations: 8.375 kB / 273 MB, free: 1.348 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.006531, allocations: 211.6 kB / 273.2 MB, free: 1.121 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/0.006568, allocations: 19.94 kB / 273.2 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.006579, allocations: 0 / 273.2 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.006661, allocations: 4 kB / 273.2 MB, free: 1.098 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.686e-05/0.006688, allocations: 7.922 kB / 273.2 MB, free: 1.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.054e-06/0.006695, allocations: 8 kB / 273.2 MB, free: 1.082 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.159e-05/0.006727, allocations: 27.48 kB / 273.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006727, allocations: 3.938 kB / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002239/0.006951, allocations: 4 kB / 273.3 MB, free: 1.047 MB / 250.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.036e-05/0.007031, allocations: 87.83 kB / 273.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.053e-05/0.007102, allocations: 28.78 kB / 273.4 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.007104, allocations: 0 / 273.4 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.413e-05/0.007118, allocations: 8.859 kB / 273.4 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.007437, allocations: 50.06 kB / 273.4 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003299/0.007767, allocations: 187.7 kB / 273.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.878e-05/0.007825, allocations: 71.34 kB / 273.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.924e-05/0.007845, allocations: 0 / 273.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.003e-05/0.007905, allocations: 63.36 kB / 273.8 MB, free: 500 kB / 250.7 MB Notification: Performance of SimCode: time 8.52e-07/0.007906, allocations: 0 / 273.8 MB, free: 500 kB / 250.7 MB Notification: Performance of Templates: time 0.003202/0.01111, allocations: 0.7184 MB / 274.5 MB, free: 15.78 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5112161547876894]