Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.001386/0.001386, allocations: 82.17 kB / 21.42 MB, free: 3.082 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.001557/0.001557, allocations: 153.7 kB / 24.81 MB, free: 8.875 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.004/1.004, allocations: 173.4 MB / 201.5 MB, free: 8.312 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.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.012e-06/1.012e-06, allocations: 0 / 268.4 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.067e-06/1.008e-05, allocations: 2.312 kB / 268.4 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001938/0.001948, allocations: 1.864 MB / 270.3 MB, free: 7.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008505/0.002799, allocations: 0.6642 MB / 271 MB, free: 7.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.226e-05/0.002871, allocations: 3.938 kB / 271 MB, free: 7.219 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.904e-05/0.00296, allocations: 19.8 kB / 271 MB, free: 7.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.003071, allocations: 36.25 kB / 271 MB, free: 7.164 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.003391, allocations: 153.6 kB / 271.2 MB, free: 7.016 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.003533, allocations: 147.6 kB / 271.3 MB, free: 6.871 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.003654, allocations: 38.59 kB / 271.3 MB, free: 6.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.003781, allocations: 83.73 kB / 271.4 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.853e-05/0.00386, allocations: 45.56 kB / 271.5 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.003882, allocations: 12 kB / 271.5 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.852e-05/0.003951, allocations: 47.97 kB / 271.5 MB, free: 6.648 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.484e-05/0.004015, allocations: 47.83 kB / 271.6 MB, free: 6.602 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.004054, allocations: 37.42 kB / 271.6 MB, free: 6.566 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.00422, allocations: 151.4 kB / 271.8 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-06/0.004221, allocations: 0 / 271.8 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.004221, allocations: 0 / 271.8 MB, free: 6.418 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.004224, allocations: 0.5 kB / 271.8 MB, free: 6.418 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0003971/0.004621, allocations: 0.4925 MB / 272.3 MB, free: 5.891 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.00465, allocations: 12.03 kB / 272.3 MB, free: 5.879 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.004684, allocations: 28.8 kB / 272.3 MB, free: 5.852 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.004831, allocations: 193.2 kB / 272.5 MB, free: 5.637 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.004845, allocations: 4.562 kB / 272.5 MB, free: 5.633 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.004858, allocations: 8.375 kB / 272.5 MB, free: 5.625 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.00514, allocations: 285.3 kB / 272.8 MB, free: 5.309 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.005146, allocations: 0 / 272.8 MB, free: 5.309 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-06/0.005156, allocations: 4 kB / 272.8 MB, free: 5.305 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.005162, allocations: 4 kB / 272.8 MB, free: 5.301 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.472e-05/0.005207, allocations: 22 kB / 272.8 MB, free: 5.281 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000219/0.005426, allocations: 295.9 kB / 273.1 MB, free: 4.961 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.005591, allocations: 132.5 kB / 273.2 MB, free: 4.809 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.37e-05/0.005645, allocations: 67.59 kB / 273.3 MB, free: 4.734 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001836/0.005829, allocations: 47.95 kB / 273.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.00585, allocations: 37.39 kB / 273.4 MB, free: 4.641 MB / 250.7 MB Notification: Performance of pre-optimization done (n=19): time 9.31e-07/0.005851, allocations: 0 / 273.4 MB, free: 4.641 MB / 250.7 MB Notification: Performance of matching and sorting (n=19): time 0.0001864/0.006037, allocations: 133.5 kB / 273.5 MB, free: 4.504 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.006091, allocations: 114.8 kB / 273.6 MB, free: 4.367 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.006222, allocations: 233.7 kB / 273.8 MB, free: 4.121 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.00624, allocations: 29.7 kB / 273.9 MB, free: 4.086 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.064e-05/0.006311, allocations: 155.3 kB / 274 MB, free: 3.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.006327, allocations: 7.953 kB / 274 MB, free: 3.922 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.836e-05/0.006366, allocations: 35.34 kB / 274.1 MB, free: 3.879 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.006515, allocations: 0.4961 MB / 274.6 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.072e-05/0.006525, allocations: 4 kB / 274.6 MB, free: 3.367 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.297e-05/0.006578, allocations: 84.19 kB / 274.6 MB, free: 3.258 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.3e-05/0.006621, allocations: 46.77 kB / 274.7 MB, free: 3.195 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.006623, allocations: 0 / 274.7 MB, free: 3.195 MB / 250.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003446/0.006967, allocations: 81.47 kB / 274.8 MB, free: 3.109 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.006981, allocations: 6.188 kB / 274.8 MB, free: 3.105 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.006986, allocations: 4 kB / 274.8 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.006997, allocations: 8.062 kB / 274.8 MB, free: 3.094 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.869e-05/0.007046, allocations: 15.98 kB / 274.8 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.407e-06/0.007049, allocations: 0 / 274.8 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.405e-05/0.007083, allocations: 4 kB / 274.8 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-06/0.007087, allocations: 0 / 274.8 MB, free: 3.074 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.763e-05/0.007185, allocations: 176.4 kB / 275 MB, free: 2.891 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.007289, allocations: 109.4 kB / 275.1 MB, free: 2.777 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001301/0.007419, allocations: 119.4 kB / 275.2 MB, free: 2.652 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.007422, allocations: 7.938 kB / 275.2 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.007424, allocations: 0 / 275.2 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.007428, allocations: 4 kB / 275.2 MB, free: 2.641 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.007541, allocations: 137.1 kB / 275.3 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.007544, allocations: 0 / 275.3 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.552e-05/0.007609, allocations: 31.98 kB / 275.4 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.007611, allocations: 0 / 275.4 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.007618, allocations: 4 kB / 275.4 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.007619, allocations: 4 kB / 275.4 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.00762, allocations: 0 / 275.4 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.98e-05/0.007699, allocations: 211.3 kB / 275.6 MB, free: 2.211 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.768e-05/0.007747, allocations: 35.88 kB / 275.6 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.007766, allocations: 8.031 kB / 275.6 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.338e-05/0.007819, allocations: 12 kB / 275.6 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.574e-05/0.007835, allocations: 7.922 kB / 275.7 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.007849, allocations: 4 kB / 275.7 MB, free: 2.145 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.089e-05/0.00791, allocations: 172.2 kB / 275.8 MB, free: 1.977 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00791, allocations: 0 / 275.8 MB, free: 1.977 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001611/0.008071, allocations: 28 kB / 275.9 MB, free: 1.949 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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.693e-05/0.008168, allocations: 119.2 kB / 276 MB, free: 1.824 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.76e-05/0.008255, allocations: 55.47 kB / 276 MB, free: 1.766 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-06/0.008256, allocations: 0 / 276 MB, free: 1.766 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.159e-05/0.008268, allocations: 15.62 kB / 276 MB, free: 1.746 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.008559, allocations: 116.1 kB / 276.2 MB, free: 1.629 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004486/0.009008, allocations: 289.8 kB / 276.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.181e-05/0.009059, allocations: 84.22 kB / 276.5 MB, free: 1.207 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.941e-05/0.009089, allocations: 17.14 kB / 276.5 MB, free: 1.191 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.345e-05/0.009182, allocations: 98.17 kB / 276.6 MB, free: 1.094 MB / 250.7 MB Notification: Performance of SimCode: time 4.01e-07/0.009183, allocations: 0 / 276.6 MB, free: 1.094 MB / 250.7 MB Notification: Performance of Templates: time 0.003905/0.01309, allocations: 2.631 MB / 279.3 MB, free: 14.52 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.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.677814483176917]