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.0009374/0.0009374, 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.0009728/0.0009728, allocations: 144.4 kB / 24.89 MB, free: 8.27 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.8918/0.8918, allocations: 173.3 MB / 201.5 MB, free: 9.195 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.062e-06/1.062e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.133e-05/1.239e-05, allocations: 6.312 kB / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.001837/0.001849, allocations: 1.725 MB / 270.2 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000314/0.002163, allocations: 171.2 kB / 270.4 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.926e-05/0.002242, allocations: 0 / 270.4 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.497e-05/0.002287, allocations: 15.86 kB / 270.4 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.002397, allocations: 11.88 kB / 270.4 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001806/0.002578, allocations: 43.83 kB / 270.4 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.994e-05/0.002668, allocations: 51.84 kB / 270.5 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.81e-05/0.002736, allocations: 31.91 kB / 270.5 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.622e-05/0.002782, allocations: 27.97 kB / 270.6 MB, free: 4.094 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.04e-05/0.002823, allocations: 19.91 kB / 270.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.00284, allocations: 4 kB / 270.6 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.448e-06/0.00285, allocations: 4 kB / 270.6 MB, free: 4.066 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.836e-05/0.002888, allocations: 19.92 kB / 270.6 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.002908, allocations: 19.92 kB / 270.6 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.901e-05/0.002997, allocations: 59.62 kB / 270.7 MB, free: 3.969 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.003, allocations: 4 kB / 270.7 MB, free: 3.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.003, allocations: 4 kB / 270.7 MB, free: 3.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.335e-06/0.003002, allocations: 0 / 270.7 MB, free: 3.961 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.0002541/0.003256, allocations: 272.6 kB / 271 MB, free: 3.668 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.748e-05/0.003284, allocations: 8.922 kB / 271 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.679e-05/0.003311, allocations: 20.91 kB / 271 MB, free: 3.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.003425, allocations: 141.5 kB / 271.1 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.003432, allocations: 8.375 kB / 271.1 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.003443, allocations: 12.31 kB / 271.1 MB, free: 3.457 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001688/0.003612, allocations: 139.1 kB / 271.3 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-06/0.003617, allocations: 4.188 kB / 271.3 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.003624, allocations: 4.375 kB / 271.3 MB, free: 3.289 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.003628, allocations: 384 / 271.3 MB, free: 3.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.545e-05/0.003654, allocations: 27.8 kB / 271.3 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001702/0.003824, allocations: 253.2 kB / 271.6 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.003936, allocations: 83.69 kB / 271.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.089e-05/0.003967, allocations: 38.64 kB / 271.7 MB, free: 2.836 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.003979, allocations: 0 / 271.7 MB, free: 2.836 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.004, allocations: 46.55 kB / 271.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 8.01e-07/0.004, allocations: 0 / 271.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001171/0.004117, allocations: 77.69 kB / 271.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.004161, allocations: 114.8 kB / 271.9 MB, free: 2.562 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.072e-05/0.004222, allocations: 137.7 kB / 272 MB, free: 2.418 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.004231, allocations: 25.7 kB / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.047e-05/0.004261, allocations: 88.14 kB / 272.2 MB, free: 2.297 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.175e-05/0.004273, allocations: 3.953 kB / 272.2 MB, free: 2.293 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.424e-05/0.004297, allocations: 25.64 kB / 272.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 5.953e-05/0.004357, allocations: 310.8 kB / 272.5 MB, free: 1.949 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.891e-06/0.004363, allocations: 4 kB / 272.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.021e-05/0.004373, allocations: 9.719 kB / 272.5 MB, free: 1.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.234e-05/0.004395, allocations: 25.64 kB / 272.5 MB, free: 1.898 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.004397, allocations: 4.062 kB / 272.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.375e-05/0.004431, allocations: 37.7 kB / 272.6 MB, free: 1.852 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.00444, allocations: 4 kB / 272.6 MB, free: 1.848 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.004444, allocations: 3.984 kB / 272.6 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.476e-06/0.004452, allocations: 3.938 kB / 272.6 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.248e-05/0.004475, allocations: 7.938 kB / 272.6 MB, free: 1.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.004478, allocations: 4 kB / 272.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.173e-05/0.00449, allocations: 0 / 272.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-06/0.004493, allocations: 4 kB / 272.6 MB, free: 1.824 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 5.032e-05/0.004544, allocations: 120.7 kB / 272.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.017e-05/0.004594, allocations: 57.67 kB / 272.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.173e-05/0.004616, allocations: 8.781 kB / 272.8 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.004619, allocations: 7.938 kB / 272.8 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.004621, allocations: 0 / 272.8 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.004624, allocations: 0 / 272.8 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.004743, allocations: 81.81 kB / 272.9 MB, free: 1.516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.004744, allocations: 3.938 kB / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.005015, allocations: 23.92 kB / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.005016, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.005022, allocations: 4 kB / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.005023, allocations: 8 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.005023, allocations: 0 / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.348e-05/0.005097, allocations: 215.6 kB / 273.1 MB, free: 1.246 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.391e-05/0.005121, allocations: 15.94 kB / 273.1 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-06/0.00513, allocations: 7.938 kB / 273.1 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.684e-05/0.005177, allocations: 4 kB / 273.1 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.005195, allocations: 3.938 kB / 273.2 MB, free: 1.215 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.0052, allocations: 7.984 kB / 273.2 MB, free: 1.207 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.132e-05/0.005221, allocations: 29.45 kB / 273.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005221, allocations: 32 / 273.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001363/0.005357, allocations: 8 kB / 273.2 MB, free: 1.168 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 5.877e-05/0.005416, allocations: 76.42 kB / 273.3 MB, free: 1.086 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.126e-05/0.005467, allocations: 28.8 kB / 273.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.005469, allocations: 0 / 273.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.708e-06/0.005479, allocations: 12.84 kB / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.005687, allocations: 37.44 kB / 273.3 MB, free: 1.004 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002303/0.005918, allocations: 199.7 kB / 273.5 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.784e-05/0.005956, allocations: 67.34 kB / 273.6 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.504e-05/0.005971, allocations: 3.984 kB / 273.6 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.006011, allocations: 59.36 kB / 273.7 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of SimCode: time 5.81e-07/0.006011, allocations: 0 / 273.7 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of Templates: time 0.00195/0.007961, allocations: 0.7205 MB / 274.4 MB, free: 15.91 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 -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.355061228852719]