Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.001867/0.001867, allocations: 118.5 kB / 18.41 MB, free: 4.555 MB / 14.72 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.00208/0.002081, allocations: 186.7 kB / 21.35 MB, free: 1.621 MB / 14.72 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 1.462/1.462, allocations: 222.9 MB / 247 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] 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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 55.91 kB / 358.7 MB, free: 8.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1189, allocations: 49.42 MB / 408.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003813/0.1227, allocations: 1.551 MB / 409.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.1239, allocations: 474.7 kB / 410.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1241, allocations: 0 / 410.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.084e-05/0.1242, allocations: 3.938 kB / 410.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.1243, allocations: 15.86 kB / 410.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003337/0.1247, allocations: 39.89 kB / 410.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.1248, allocations: 39.8 kB / 410.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.125, allocations: 19.97 kB / 410.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.982e-05/0.125, allocations: 15.92 kB / 410.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.491e-05/0.1251, allocations: 19.92 kB / 410.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.034e-05/0.1252, allocations: 0 / 410.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.661e-05/0.1252, allocations: 4 kB / 410.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.786e-05/0.1252, allocations: 15.92 kB / 410.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.684e-05/0.1253, allocations: 23.81 kB / 410.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.1254, allocations: 47.75 kB / 410.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1255, allocations: 0 / 410.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1255, allocations: 0 / 410.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1255, allocations: 0 / 410.4 MB, free: 4.602 MB / 334.1 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.0005888/0.1261, allocations: 383 kB / 410.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1261, allocations: 12.03 kB / 410.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.1262, allocations: 8.891 kB / 410.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.1265, allocations: 190.2 kB / 410.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1265, allocations: 4.375 kB / 410.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.1265, allocations: 4.375 kB / 410.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.1268, allocations: 97.34 kB / 411 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1268, allocations: 0 / 411 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.1268, allocations: 0 / 411 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1269, allocations: 4 kB / 411 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.075e-05/0.1269, allocations: 15.98 kB / 411.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003771/0.1273, allocations: 269.7 kB / 411.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.1274, allocations: 45.22 kB / 411.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.631e-05/0.1275, allocations: 21.77 kB / 411.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.1275, allocations: 3.938 kB / 411.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.1276, allocations: 34.56 kB / 411.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.342e-06/0.1276, allocations: 4 kB / 411.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002718/0.1279, allocations: 73.5 kB / 411.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.266e-05/0.1279, allocations: 81.11 kB / 411.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.1281, allocations: 133.8 kB / 411.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.1281, allocations: 25.7 kB / 411.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.876e-05/0.1282, allocations: 88.12 kB / 411.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.216e-05/0.1282, allocations: 4.25 kB / 411.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.1282, allocations: 21.67 kB / 411.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1284, allocations: 318.8 kB / 412.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.303e-05/0.1285, allocations: 7.984 kB / 412.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.154e-05/0.1285, allocations: 17.72 kB / 412.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.954e-05/0.1286, allocations: 37.7 kB / 412.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1286, allocations: 0 / 412.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001273/0.1287, allocations: 57.67 kB / 412.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.1288, allocations: 4 kB / 412.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.1288, allocations: 4 kB / 412.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1288, allocations: 3.938 kB / 412.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.8e-05/0.1289, allocations: 4 kB / 412.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.1289, allocations: 0 / 412.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.14e-05/0.129, allocations: 12.05 kB / 412.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-06/0.129, allocations: 3.938 kB / 412.3 MB, free: 2.383 MB / 334.1 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 0.0001052/0.1291, allocations: 117.8 kB / 412.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.949e-05/0.1292, allocations: 37.66 kB / 412.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.586e-05/0.1292, allocations: 15.86 kB / 412.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1292, allocations: 0 / 412.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1292, allocations: 0 / 412.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1292, allocations: 0 / 412.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.1294, allocations: 165.6 kB / 412.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1294, allocations: 8.031 kB / 412.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.477e-05/0.1295, allocations: 4 kB / 412.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1295, allocations: 3.938 kB / 412.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/0.1295, allocations: 3.984 kB / 412.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1295, allocations: 0 / 412.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1295, allocations: 4 kB / 412.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.1297, allocations: 160.3 kB / 412.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.678e-05/0.1298, allocations: 97.03 kB / 412.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.1298, allocations: 0 / 412.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.699e-05/0.1299, allocations: 7.984 kB / 412.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.13, allocations: 0 / 412.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.13, allocations: 4 kB / 412.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.933e-05/0.1301, allocations: 105 kB / 413 MB, free: 1.559 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1301, allocations: 0 / 413 MB, free: 1.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.1303, allocations: 7.938 kB / 413 MB, free: 1.551 MB / 334.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 (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 0.0001337/0.1305, allocations: 115.6 kB / 413.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001663/0.1306, allocations: 19.98 kB / 413.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1306, allocations: 0 / 413.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.213e-05/0.1307, allocations: 8 kB / 413.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.1312, allocations: 22.14 kB / 413.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005318/0.1317, allocations: 201.3 kB / 413.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.1322, allocations: 0.6883 MB / 414.1 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.51e-05/0.1322, allocations: 15.44 kB / 414.1 MB, free: 432 kB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1322, allocations: 0 / 414.1 MB, free: 432 kB / 334.1 MB Notification: Performance of Templates: time 0.002783/0.135, allocations: 0.6804 MB / 414.8 MB, free: 15.74 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.1088531910208985]