Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.0009851/0.0009851, allocations: 72.08 kB / 21.69 MB, free: 2.855 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.001071/0.001071, allocations: 143.8 kB / 24.98 MB, free: 8.812 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 1.018/1.018, allocations: 173.4 MB / 201.5 MB, free: 9.328 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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.146e-05, allocations: 6.25 kB / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.00203/0.002052, allocations: 1.619 MB / 269.7 MB, free: 5.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006087/0.00266, allocations: 466.6 kB / 270.2 MB, free: 4.621 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.002763, allocations: 0 / 270.2 MB, free: 4.621 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.617e-05/0.002809, allocations: 7.875 kB / 270.2 MB, free: 4.613 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.002948, allocations: 19.92 kB / 270.2 MB, free: 4.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.003165, allocations: 39.78 kB / 270.2 MB, free: 4.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.003265, allocations: 47.78 kB / 270.3 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.555e-05/0.00336, allocations: 11.98 kB / 270.3 MB, free: 4.496 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.233e-05/0.003433, allocations: 23.97 kB / 270.3 MB, free: 4.473 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.209e-05/0.003485, allocations: 15.92 kB / 270.3 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.003506, allocations: 4 kB / 270.3 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.398e-06/0.003516, allocations: 0 / 270.3 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.46e-05/0.00357, allocations: 19.92 kB / 270.3 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.753e-05/0.003608, allocations: 15.92 kB / 270.4 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.003743, allocations: 43.83 kB / 270.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.003746, allocations: 0 / 270.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.003746, allocations: 0 / 270.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.003751, allocations: 0 / 270.4 MB, free: 4.375 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.0005703/0.004321, allocations: 396.3 kB / 270.8 MB, free: 3.953 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.004371, allocations: 12.92 kB / 270.8 MB, free: 3.941 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.54e-05/0.004426, allocations: 8.891 kB / 270.8 MB, free: 3.934 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.004625, allocations: 143.4 kB / 271 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.004639, allocations: 8.375 kB / 271 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.00465, allocations: 8.375 kB / 271 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.004927, allocations: 129.5 kB / 271.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.004935, allocations: 192 / 271.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.004945, allocations: 384 / 271.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.004954, allocations: 3.938 kB / 271.1 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.644e-05/0.004981, allocations: 12 kB / 271.1 MB, free: 3.586 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002635/0.005244, allocations: 259.5 kB / 271.4 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.005381, allocations: 74.11 kB / 271.4 MB, free: 3.195 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.836e-05/0.00542, allocations: 31.42 kB / 271.5 MB, free: 3.156 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.005437, allocations: 4 kB / 271.5 MB, free: 3.152 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/0.005484, allocations: 41.27 kB / 271.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.894e-06/0.005486, allocations: 0 / 271.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001613/0.005647, allocations: 61.58 kB / 271.6 MB, free: 3.035 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.005694, allocations: 81.11 kB / 271.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.713e-05/0.005781, allocations: 189.9 kB / 271.8 MB, free: 2.734 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.005791, allocations: 29.7 kB / 271.9 MB, free: 2.699 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/0.005837, allocations: 142.9 kB / 272 MB, free: 2.555 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.005851, allocations: 4 kB / 272 MB, free: 2.551 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.005875, allocations: 19.38 kB / 272 MB, free: 2.523 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.704e-05/0.005972, allocations: 496.1 kB / 272.5 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.143e-05/0.005984, allocations: 0 / 272.5 MB, free: 2.027 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.715e-06/0.005991, allocations: 3.984 kB / 272.5 MB, free: 2.023 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.291e-05/0.006014, allocations: 15.69 kB / 272.5 MB, free: 2.004 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.006016, allocations: 0 / 272.5 MB, free: 2.004 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.485e-05/0.006061, allocations: 37.59 kB / 272.6 MB, free: 1.961 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.006075, allocations: 12.03 kB / 272.6 MB, free: 1.949 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.006079, allocations: 4 kB / 272.6 MB, free: 1.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.00609, allocations: 0 / 272.6 MB, free: 1.945 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.792e-05/0.006138, allocations: 7.984 kB / 272.6 MB, free: 1.938 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.006142, allocations: 0 / 272.6 MB, free: 1.938 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.447e-05/0.006157, allocations: 0 / 272.6 MB, free: 1.938 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.006161, allocations: 0 / 272.6 MB, free: 1.938 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 5.821e-05/0.006219, allocations: 156.6 kB / 272.7 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.032e-05/0.00626, allocations: 53.77 kB / 272.8 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.908e-05/0.006289, allocations: 8.344 kB / 272.8 MB, free: 1.699 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.006291, allocations: 4.031 kB / 272.8 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.331e-06/0.006297, allocations: 8 kB / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.0063, allocations: 3.938 kB / 272.8 MB, free: 1.684 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.622e-05/0.006396, allocations: 132.6 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.006396, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.569e-05/0.006422, allocations: 8 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.006423, allocations: 0 / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.006431, allocations: 3.938 kB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.006432, allocations: 4 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.006433, allocations: 0 / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.9e-05/0.006532, allocations: 207.6 kB / 273.2 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.984e-05/0.006561, allocations: 27.88 kB / 273.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.006575, allocations: 3.938 kB / 273.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.241e-05/0.006607, allocations: 7.984 kB / 273.2 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.006637, allocations: 3.938 kB / 273.2 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.00664, allocations: 0 / 273.2 MB, free: 1.234 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.189e-05/0.006732, allocations: 145.7 kB / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006732, allocations: 3.938 kB / 273.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001369/0.006869, allocations: 8 kB / 273.4 MB, free: 1.082 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 7.178e-05/0.006941, allocations: 91.25 kB / 273.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.408e-05/0.007025, allocations: 23.67 kB / 273.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007027, allocations: 0 / 273.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.328e-05/0.00704, allocations: 7.688 kB / 273.5 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.007286, allocations: 24.8 kB / 273.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004173/0.007703, allocations: 172.7 kB / 273.7 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.414e-05/0.007737, allocations: 63.34 kB / 273.7 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.901e-05/0.007756, allocations: 4.125 kB / 273.7 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.534e-05/0.007781, allocations: 12.5 kB / 273.8 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of SimCode: time 7.62e-07/0.007782, allocations: 0 / 273.8 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of Templates: time 0.002005/0.009787, allocations: 0.5629 MB / 274.3 MB, free: 68 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.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.7117263320833445]