Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.0007475/0.0007475, allocations: 84 kB / 21.43 MB, free: 3.129 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.002888/0.002888, allocations: 149.5 kB / 24.68 MB, free: 9.426 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.8467/0.8467, allocations: 173.4 MB / 201.2 MB, free: 9.074 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.751e-05/1.895e-05, allocations: 2.281 kB / 319.7 MB, free: 5.832 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002024/0.002043, allocations: 1.535 MB / 321.2 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002976/0.002341, allocations: 147.4 kB / 321.4 MB, free: 4.137 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.026e-05/0.002411, allocations: 3.938 kB / 321.4 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.135e-05/0.002452, allocations: 11.92 kB / 321.4 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.00258, allocations: 11.88 kB / 321.4 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.00277, allocations: 35.84 kB / 321.4 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.572e-05/0.002855, allocations: 39.84 kB / 321.5 MB, free: 4.035 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.315e-05/0.002938, allocations: 11.98 kB / 321.5 MB, free: 4.023 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.068e-05/0.002979, allocations: 19.91 kB / 321.5 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.554e-05/0.003015, allocations: 11.98 kB / 321.5 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.003037, allocations: 4 kB / 321.5 MB, free: 3.988 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.226e-06/0.003046, allocations: 4 kB / 321.5 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.352e-05/0.003089, allocations: 11.94 kB / 321.5 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.656e-05/0.003116, allocations: 15.92 kB / 321.6 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.401e-05/0.00321, allocations: 47.81 kB / 321.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.003212, allocations: 0 / 321.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.003212, allocations: 0 / 321.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.003216, allocations: 0 / 321.6 MB, free: 3.91 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003349/0.003551, allocations: 294 kB / 321.9 MB, free: 3.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.003584, allocations: 12.92 kB / 321.9 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.595e-05/0.00361, allocations: 4.891 kB / 321.9 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.003768, allocations: 141 kB / 322.1 MB, free: 3.414 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.003777, allocations: 8.375 kB / 322.1 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.003785, allocations: 384 / 322.1 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.004005, allocations: 113.6 kB / 322.2 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.004014, allocations: 192 / 322.2 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.004021, allocations: 384 / 322.2 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.004025, allocations: 384 / 322.2 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.375e-05/0.004069, allocations: 27.86 kB / 322.2 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002229/0.004292, allocations: 213.4 kB / 322.4 MB, free: 3.008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.004426, allocations: 61.14 kB / 322.5 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.664e-05/0.004463, allocations: 25.77 kB / 322.5 MB, free: 2.898 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.00448, allocations: 4 kB / 322.5 MB, free: 2.895 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.004496, allocations: 30.56 kB / 322.5 MB, free: 2.855 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.004497, allocations: 0 / 322.5 MB, free: 2.855 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001743/0.004671, allocations: 85.48 kB / 322.6 MB, free: 2.766 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.004712, allocations: 89.23 kB / 322.7 MB, free: 2.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.32e-05/0.004786, allocations: 126.1 kB / 322.8 MB, free: 2.523 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.004794, allocations: 25.7 kB / 322.8 MB, free: 2.492 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.839e-05/0.004833, allocations: 96.06 kB / 322.9 MB, free: 2.395 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.014e-05/0.004843, allocations: 3.938 kB / 322.9 MB, free: 2.391 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.004867, allocations: 17.67 kB / 323 MB, free: 2.367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.697e-05/0.004934, allocations: 314.8 kB / 323.3 MB, free: 2.051 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.84e-05/0.004952, allocations: 11.92 kB / 323.3 MB, free: 2.039 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.211e-05/0.004965, allocations: 4 kB / 323.3 MB, free: 2.035 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.256e-05/0.004997, allocations: 24.91 kB / 323.3 MB, free: 2.008 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.004999, allocations: 0 / 323.3 MB, free: 2.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.8e-05/0.005047, allocations: 41.69 kB / 323.3 MB, free: 1.961 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.005057, allocations: 4 kB / 323.4 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.005063, allocations: 3.938 kB / 323.4 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.005074, allocations: 0 / 323.4 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.791e-05/0.005102, allocations: 4 kB / 323.4 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.005105, allocations: 0 / 323.4 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.791e-05/0.005123, allocations: 12.02 kB / 323.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-06/0.005128, allocations: 3.984 kB / 323.4 MB, free: 1.934 MB / 282.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 5.308e-05/0.005181, allocations: 117.8 kB / 323.5 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.005219, allocations: 49.64 kB / 323.5 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.482e-05/0.005244, allocations: 16.28 kB / 323.6 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.005245, allocations: 0 / 323.6 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.005249, allocations: 0 / 323.6 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.005251, allocations: 0 / 323.6 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.452e-05/0.005336, allocations: 121.3 kB / 323.7 MB, free: 1.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.005336, allocations: 0 / 323.7 MB, free: 1.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-05/0.005357, allocations: 4 kB / 323.7 MB, free: 1.578 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.005358, allocations: 8 kB / 323.7 MB, free: 1.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.005364, allocations: 4 kB / 323.7 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.005366, allocations: 3.938 kB / 323.7 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.005366, allocations: 0 / 323.7 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.602e-05/0.005452, allocations: 168.3 kB / 323.9 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.462e-05/0.005477, allocations: 15.94 kB / 323.9 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.526e-06/0.005486, allocations: 0 / 323.9 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.962e-05/0.005515, allocations: 7.938 kB / 323.9 MB, free: 1.355 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.075e-05/0.005536, allocations: 4 kB / 323.9 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-06/0.005538, allocations: 4 kB / 323.9 MB, free: 1.348 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.983e-05/0.005577, allocations: 107.2 kB / 324 MB, free: 1.242 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.005578, allocations: 3.938 kB / 324 MB, free: 1.238 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001467/0.005724, allocations: 4 kB / 324 MB, free: 1.234 MB / 282.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 (4): * Single equations (assignments): 4 * 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.936e-05/0.005784, allocations: 95.19 kB / 324.1 MB, free: 1.133 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.619e-05/0.00586, allocations: 27.92 kB / 324.1 MB, free: 1.105 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.005861, allocations: 0 / 324.1 MB, free: 1.105 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.528e-05/0.005877, allocations: 7.984 kB / 324.1 MB, free: 1.098 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.006097, allocations: 34.59 kB / 324.2 MB, free: 1.066 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002258/0.006323, allocations: 179.4 kB / 324.3 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.798e-05/0.00637, allocations: 71.34 kB / 324.4 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.989e-05/0.00639, allocations: 8.5 kB / 324.4 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of SimCode: time 4.61e-07/0.006391, allocations: 0 / 324.4 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of Templates: time 0.001356/0.007747, allocations: 0.6787 MB / 325.1 MB, free: 84 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.933301250450313]