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.0009329/0.0009329, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.001035/0.001035, allocations: 142.8 kB / 25.59 MB, free: 8.883 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.9302/0.9302, allocations: 173.4 MB / 202.3 MB, free: 8.285 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.843e-06/1.843e-06, allocations: 0 / 269.2 MB, free: 9.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.495e-05/2.679e-05, allocations: 2.312 kB / 269.2 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003048/0.003075, allocations: 1.587 MB / 270.8 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004203/0.003495, allocations: 145.5 kB / 270.9 MB, free: 8.008 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.975e-05/0.003585, allocations: 3.938 kB / 270.9 MB, free: 8.004 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.794e-05/0.003643, allocations: 7.938 kB / 271 MB, free: 7.996 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.003787, allocations: 11.91 kB / 271 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.004026, allocations: 39.78 kB / 271 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.004139, allocations: 33.27 kB / 271 MB, free: 7.914 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.62e-05/0.004235, allocations: 7.984 kB / 271 MB, free: 7.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.702e-05/0.004292, allocations: 23.92 kB / 271.1 MB, free: 7.883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.545e-05/0.004337, allocations: 8.516 kB / 271.1 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.004358, allocations: 0 / 271.1 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.2e-05/0.00437, allocations: 4.594 kB / 271.1 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.249e-05/0.004422, allocations: 15.92 kB / 271.1 MB, free: 7.855 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.758e-05/0.00445, allocations: 13.91 kB / 271.1 MB, free: 7.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.004562, allocations: 35.83 kB / 271.1 MB, free: 7.809 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.004565, allocations: 0 / 271.1 MB, free: 7.809 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004566, allocations: 0 / 271.1 MB, free: 7.809 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.00457, allocations: 0 / 271.1 MB, free: 7.809 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004205/0.004991, allocations: 398.1 kB / 271.5 MB, free: 7.383 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.00503, allocations: 8.031 kB / 271.5 MB, free: 7.375 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.005076, allocations: 12.83 kB / 271.6 MB, free: 7.363 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.005253, allocations: 136.8 kB / 271.7 MB, free: 7.207 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.005262, allocations: 384 / 271.7 MB, free: 7.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.005272, allocations: 8.375 kB / 271.7 MB, free: 7.199 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.005496, allocations: 127.8 kB / 271.8 MB, free: 7.051 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.005505, allocations: 4.172 kB / 271.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.005511, allocations: 3.438 kB / 271.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.005517, allocations: 384 / 271.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.208e-05/0.005539, allocations: 15.86 kB / 271.8 MB, free: 7.031 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002456/0.005784, allocations: 248 kB / 272.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.005927, allocations: 66.09 kB / 272.2 MB, free: 6.668 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.682e-05/0.005964, allocations: 27.44 kB / 272.2 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.005978, allocations: 0 / 272.2 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.00601, allocations: 38.36 kB / 272.2 MB, free: 6.586 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.483e-06/0.006011, allocations: 3.938 kB / 272.2 MB, free: 6.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001593/0.006171, allocations: 62.02 kB / 272.3 MB, free: 6.516 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.006221, allocations: 89.16 kB / 272.4 MB, free: 6.41 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.006329, allocations: 189.9 kB / 272.6 MB, free: 6.207 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.006341, allocations: 25.7 kB / 272.6 MB, free: 6.176 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.955e-05/0.006391, allocations: 126.9 kB / 272.7 MB, free: 6.047 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.006405, allocations: 4 kB / 272.7 MB, free: 6.043 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.006438, allocations: 23.33 kB / 272.7 MB, free: 6.012 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.006575, allocations: 0.4884 MB / 273.2 MB, free: 5.512 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-06/0.006583, allocations: 0 / 273.2 MB, free: 5.512 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.00659, allocations: 3.984 kB / 273.2 MB, free: 5.508 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.288e-05/0.006613, allocations: 11.69 kB / 273.2 MB, free: 5.492 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.006615, allocations: 4.062 kB / 273.2 MB, free: 5.488 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.681e-05/0.006672, allocations: 29.7 kB / 273.3 MB, free: 5.453 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.006685, allocations: 7.938 kB / 273.3 MB, free: 5.445 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.006691, allocations: 4 kB / 273.3 MB, free: 5.441 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.006701, allocations: 3.938 kB / 273.3 MB, free: 5.438 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.153e-05/0.006742, allocations: 0 / 273.3 MB, free: 5.438 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-06/0.006744, allocations: 0 / 273.3 MB, free: 5.438 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.879e-05/0.006763, allocations: 4 kB / 273.3 MB, free: 5.434 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.006767, allocations: 0 / 273.3 MB, free: 5.434 MB / 250.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 7.988e-05/0.006847, allocations: 160.6 kB / 273.4 MB, free: 5.266 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-05/0.006914, allocations: 45.66 kB / 273.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.31e-05/0.006948, allocations: 16.33 kB / 273.5 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.006951, allocations: 3.938 kB / 273.5 MB, free: 5.188 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.006953, allocations: 0 / 273.5 MB, free: 5.188 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.006956, allocations: 0 / 273.5 MB, free: 5.188 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.007089, allocations: 105.2 kB / 273.6 MB, free: 5.059 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.007091, allocations: 0 / 273.6 MB, free: 5.059 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-05/0.007134, allocations: 11.94 kB / 273.6 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.007137, allocations: 0 / 273.6 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-06/0.007141, allocations: 0 / 273.6 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.007145, allocations: 8 kB / 273.6 MB, free: 5.039 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.007146, allocations: 0 / 273.6 MB, free: 5.039 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.00726, allocations: 199.8 kB / 273.8 MB, free: 4.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.189e-05/0.007291, allocations: 7.953 kB / 273.8 MB, free: 4.812 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.007305, allocations: 11.94 kB / 273.8 MB, free: 4.801 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.8e-05/0.007363, allocations: 7.969 kB / 273.9 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.007387, allocations: 4 kB / 273.9 MB, free: 4.789 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.007394, allocations: 7.938 kB / 273.9 MB, free: 4.781 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.875e-05/0.007452, allocations: 135.2 kB / 274 MB, free: 4.648 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007453, allocations: 0 / 274 MB, free: 4.648 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002369/0.007689, allocations: 8.031 kB / 274 MB, free: 4.641 MB / 250.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 9.188e-05/0.007781, allocations: 102 kB / 274.1 MB, free: 4.535 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.615e-05/0.007857, allocations: 19.67 kB / 274.1 MB, free: 4.512 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.007859, allocations: 0 / 274.1 MB, free: 4.512 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.202e-05/0.007871, allocations: 11.69 kB / 274.1 MB, free: 4.496 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.008204, allocations: 28.73 kB / 274.2 MB, free: 4.465 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002728/0.008476, allocations: 144.9 kB / 274.3 MB, free: 4.293 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.341e-05/0.00852, allocations: 63.41 kB / 274.4 MB, free: 4.211 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.356e-05/0.008543, allocations: 11.91 kB / 274.4 MB, free: 4.199 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.82e-05/0.008602, allocations: 74.19 kB / 274.4 MB, free: 4.125 MB / 250.7 MB Notification: Performance of SimCode: time 6.92e-07/0.008602, allocations: 0 / 274.4 MB, free: 4.125 MB / 250.7 MB Notification: Performance of Templates: time 0.002717/0.01132, allocations: 0.5556 MB / 275 MB, free: 3.578 MB / 250.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 240] 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","",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.5748755019158125]