Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009986/0.0009986, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 171.5 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.015/1.015, allocations: 177.1 MB / 205.3 MB, free: 5.105 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 273.5 MB, free: 1.137 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.745e-05/1.882e-05, allocations: 2.312 kB / 273.5 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002042/0.002061, allocations: 1.666 MB / 275.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000738/0.002799, allocations: 0.5296 MB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.349e-05/0.002873, allocations: 0 / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.557e-05/0.002918, allocations: 3.938 kB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.003068, allocations: 23.84 kB / 275.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.003291, allocations: 47.77 kB / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.003394, allocations: 43.8 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.87e-05/0.003473, allocations: 15.97 kB / 275.8 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.003591, allocations: 23.92 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.719e-05/0.003648, allocations: 15.92 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.003667, allocations: 4 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.461e-05/0.003721, allocations: 4 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.673e-05/0.003758, allocations: 19.91 kB / 275.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.748e-05/0.003775, allocations: 8 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.989e-05/0.003875, allocations: 43.83 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.003877, allocations: 0 / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.003878, allocations: 0 / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.003882, allocations: 3.938 kB / 276 MB, free: 14.67 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002876/0.004169, allocations: 268.6 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.872e-05/0.004198, allocations: 8.031 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.004306, allocations: 16.92 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.004454, allocations: 141.6 kB / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.091e-06/0.00446, allocations: 384 / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.412e-06/0.004467, allocations: 8.375 kB / 276.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.004602, allocations: 94.3 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.004609, allocations: 192 / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.191e-06/0.004615, allocations: 384 / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.004621, allocations: 3.938 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.321e-05/0.004634, allocations: 7.938 kB / 276.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.004789, allocations: 157.1 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.09e-05/0.00483, allocations: 41.12 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.41e-05/0.004844, allocations: 9.844 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.004855, allocations: 4 kB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.919e-05/0.004874, allocations: 34.56 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 7.71e-07/0.004875, allocations: 0 / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001051/0.00498, allocations: 49.56 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.005019, allocations: 77.11 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.209e-05/0.005091, allocations: 130.7 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.0051, allocations: 29.7 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.558e-05/0.005135, allocations: 92.36 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.458e-05/0.00515, allocations: 4 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-05/0.005175, allocations: 21.61 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.918e-05/0.005254, allocations: 314.8 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.703e-06/0.005261, allocations: 4 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.971e-06/0.005267, allocations: 0 / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.004e-05/0.005287, allocations: 16.78 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.005288, allocations: 0 / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.892e-05/0.005326, allocations: 33.69 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.005337, allocations: 4 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.005341, allocations: 4.094 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.005352, allocations: 7.938 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.415e-05/0.005396, allocations: 0 / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.086e-06/0.005399, allocations: 0 / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.4e-05/0.005413, allocations: 4 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-06/0.005417, allocations: 0 / 277.5 MB, free: 12.92 MB / 266.7 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 (1): * Single equations (assignments): 1 * 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 4.576e-05/0.005463, allocations: 108.7 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.944e-05/0.005492, allocations: 45.62 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.024e-05/0.005513, allocations: 7.812 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.005515, allocations: 3.969 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.005519, allocations: 11.98 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.005522, allocations: 0 / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.351e-05/0.005596, allocations: 69.89 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.005597, allocations: 0 / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.714e-05/0.005614, allocations: 7.984 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.005615, allocations: 0 / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-06/0.005619, allocations: 0 / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.005619, allocations: 0 / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.005621, allocations: 4 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.111e-05/0.005682, allocations: 144.3 kB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.094e-05/0.005703, allocations: 11.98 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.005714, allocations: 11.97 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.775e-05/0.005742, allocations: 0 / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.439e-05/0.005766, allocations: 3.938 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.00577, allocations: 4 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.432e-05/0.005794, allocations: 31.58 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005794, allocations: 0 / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001081/0.005902, allocations: 4 kB / 278 MB, free: 12.41 MB / 266.7 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 (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 Backend phase and start with SimCode phase: time 5.863e-05/0.005961, allocations: 84.3 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.897e-05/0.00601, allocations: 20.78 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.006012, allocations: 0 / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.13e-05/0.006023, allocations: 8.859 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.006201, allocations: 16.3 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003446/0.006545, allocations: 159.7 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.635e-05/0.006582, allocations: 59.36 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.791e-05/0.006599, allocations: 8.203 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.006647, allocations: 51.38 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.006647, allocations: 3.938 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of Templates: time 0.00201/0.008657, allocations: 0.5253 MB / 278.9 MB, free: 11.42 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.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.630240073427558]