Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001969/0.001969, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 14.72 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.002537/0.002537, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 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.573/1.573, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 47.92 kB / 374.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1307, allocations: 53.34 MB / 427.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.004057/0.1348, allocations: 1.556 MB / 429.1 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005879/0.1353, allocations: 147.5 kB / 429.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.1355, allocations: 0 / 429.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.6e-05/0.1355, allocations: 3.938 kB / 429.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.1357, allocations: 15.92 kB / 429.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003524/0.1361, allocations: 31.91 kB / 429.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.1362, allocations: 35.92 kB / 429.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.1364, allocations: 15.97 kB / 429.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.642e-05/0.1364, allocations: 7.938 kB / 429.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.834e-05/0.1365, allocations: 23.8 kB / 429.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.1365, allocations: 4 kB / 429.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.152e-05/0.1365, allocations: 0 / 429.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.506e-05/0.1366, allocations: 15.92 kB / 429.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.09e-05/0.1366, allocations: 19.88 kB / 429.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.1368, allocations: 59.62 kB / 429.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1368, allocations: 0 / 429.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.1368, allocations: 0 / 429.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1368, allocations: 0 / 429.4 MB, free: 2.332 MB / 350.1 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.0006095/0.1374, allocations: 367.2 kB / 429.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1375, allocations: 12.03 kB / 429.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.1375, allocations: 8.891 kB / 429.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.1379, allocations: 196.1 kB / 430 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.1379, allocations: 8.375 kB / 430 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.1379, allocations: 4.359 kB / 430 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.1383, allocations: 113.6 kB / 430.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1383, allocations: 192 / 430.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.1383, allocations: 3.938 kB / 430.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1383, allocations: 4 kB / 430.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.652e-05/0.1384, allocations: 19.98 kB / 430.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004279/0.1388, allocations: 261.8 kB / 430.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.1391, allocations: 134.2 kB / 430.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.392e-05/0.1392, allocations: 33.7 kB / 430.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.1392, allocations: 0 / 430.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.1392, allocations: 34.56 kB / 430.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.633e-06/0.1392, allocations: 4 kB / 430.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002852/0.1395, allocations: 73.66 kB / 430.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.1396, allocations: 89.08 kB / 430.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.1397, allocations: 135.9 kB / 430.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.1397, allocations: 25.7 kB / 430.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.278e-05/0.1398, allocations: 92.12 kB / 431 MB, free: 500 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.1398, allocations: 3.953 kB / 431 MB, free: 496 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.423e-05/0.1399, allocations: 17.72 kB / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.14, allocations: 314.8 kB / 431.3 MB, free: 148 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.212e-05/0.1401, allocations: 12 kB / 431.4 MB, free: 136 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.254e-05/0.1401, allocations: 31.42 kB / 431.4 MB, free: 92 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.388e-05/0.1402, allocations: 51.36 kB / 431.4 MB, free: 28 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1402, allocations: 0 / 431.4 MB, free: 28 kB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000168/0.1404, allocations: 73.48 kB / 431.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1404, allocations: 10.19 kB / 431.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1404, allocations: 0 / 431.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1405, allocations: 3.938 kB / 431.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.678e-05/0.1405, allocations: 8 kB / 431.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.1405, allocations: 0 / 431.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.832e-05/0.1406, allocations: 12.08 kB / 431.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.1406, allocations: 4 kB / 431.5 MB, free: 15.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (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 prepare postOptimizeDAE: time 0.000104/0.1407, allocations: 121.8 kB / 431.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.159e-05/0.1408, allocations: 49.62 kB / 431.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.1408, allocations: 8.25 kB / 431.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1408, allocations: 4 kB / 431.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1408, allocations: 0 / 431.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1408, allocations: 336 / 431.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.141, allocations: 173.5 kB / 431.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.141, allocations: 4 kB / 431.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.204e-05/0.1411, allocations: 11.98 kB / 431.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1411, allocations: 0 / 431.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.1411, allocations: 11.98 kB / 431.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1411, allocations: 0 / 431.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1411, allocations: 0 / 431.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.1413, allocations: 176.2 kB / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.458e-05/0.1414, allocations: 89.03 kB / 432.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.1414, allocations: 4 kB / 432.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.01e-05/0.1415, allocations: 4 kB / 432.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.1415, allocations: 3.938 kB / 432.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.1415, allocations: 0 / 432.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.335e-05/0.1416, allocations: 109.4 kB / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1416, allocations: 0 / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.1419, allocations: 4 kB / 432.3 MB, free: 15.04 MB / 366.1 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 0.0001305/0.142, allocations: 99.78 kB / 432.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001677/0.1422, allocations: 27.92 kB / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1422, allocations: 4 kB / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.639e-05/0.1422, allocations: 7.984 kB / 432.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.1426, allocations: 31.66 kB / 432.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004146/0.143, allocations: 180.4 kB / 432.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.1433, allocations: 0.6885 MB / 433.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/0.1434, allocations: 11.44 kB / 433.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1434, allocations: 0 / 433.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of Templates: time 0.002801/0.1462, allocations: 0.6912 MB / 434 MB, free: 13.24 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.2470543929957785]