Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00206/0.00206, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00228/0.00228, allocations: 215.2 kB / 23.72 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.571/1.571, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 51.92 kB / 378.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3348, allocations: 53.36 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003684/0.3385, allocations: 1.843 MB / 433.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.3401, allocations: 0.7011 MB / 434.1 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.3402, allocations: 7.938 kB / 434.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.3404, allocations: 15.8 kB / 434.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.3406, allocations: 27.8 kB / 434.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005815/0.3411, allocations: 179.1 kB / 434.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002493/0.3414, allocations: 151.5 kB / 434.5 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.3415, allocations: 37.73 kB / 434.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.3417, allocations: 63.77 kB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.3418, allocations: 59.64 kB / 434.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.041e-05/0.3419, allocations: 12 kB / 434.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.342, allocations: 63.94 kB / 434.7 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-05/0.3421, allocations: 47.84 kB / 434.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.445e-05/0.3422, allocations: 51.67 kB / 434.8 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000334/0.3425, allocations: 213.4 kB / 435 MB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3425, allocations: 0 / 435 MB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3425, allocations: 0 / 435 MB, free: 3.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3425, allocations: 0 / 435 MB, free: 3.258 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008489/0.3433, allocations: 409.5 kB / 435.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3434, allocations: 8.031 kB / 435.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.3436, allocations: 36.78 kB / 435.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004904/0.3441, allocations: 190.7 kB / 435.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.3441, allocations: 8.562 kB / 435.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.3441, allocations: 12.12 kB / 435.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/0.3449, allocations: 354.7 kB / 436 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3449, allocations: 0 / 436 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.345, allocations: 11.98 kB / 436 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.345, allocations: 3.938 kB / 436 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002393/0.3452, allocations: 87.89 kB / 436.1 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004002/0.3456, allocations: 265.2 kB / 436.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/0.3461, allocations: 177 kB / 436.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.3463, allocations: 89.73 kB / 436.7 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004254/0.3467, allocations: 67.92 kB / 436.7 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.3468, allocations: 30.84 kB / 436.8 MB, free: 1.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.402e-06/0.3468, allocations: 3.938 kB / 436.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006236/0.3474, allocations: 236 kB / 437 MB, free: 1.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.3475, allocations: 118.8 kB / 437.1 MB, free: 1.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.3477, allocations: 194.9 kB / 437.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.3477, allocations: 29.7 kB / 437.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.59e-05/0.3478, allocations: 104.6 kB / 437.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.45e-05/0.3478, allocations: 23.89 kB / 437.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.882e-05/0.3479, allocations: 37.7 kB / 437.5 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3481, allocations: 322.8 kB / 437.8 MB, free: 288 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.212e-05/0.3482, allocations: 43.97 kB / 437.8 MB, free: 244 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.3484, allocations: 186.8 kB / 438 MB, free: 15.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.3487, allocations: 208 kB / 438.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.3487, allocations: 4 kB / 438.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003553/0.3491, allocations: 209.2 kB / 438.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.3491, allocations: 15.88 kB / 438.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3491, allocations: 4 kB / 438.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3491, allocations: 8 kB / 438.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.3493, allocations: 47.91 kB / 438.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.3493, allocations: 8.547 kB / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.3494, allocations: 19.89 kB / 438.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.3494, allocations: 20 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (22): * Single equations (assignments): 22 * 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.0001554/0.3496, allocations: 147.3 kB / 438.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003191/0.3499, allocations: 173.3 kB / 438.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003935/0.3503, allocations: 179.3 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3503, allocations: 0 / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3503, allocations: 0 / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3503, allocations: 4 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.3505, allocations: 153.2 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.3505, allocations: 0 / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.3507, allocations: 35.91 kB / 439.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3507, allocations: 0 / 439.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.3507, allocations: 11.94 kB / 439.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3507, allocations: 0 / 439.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3507, allocations: 0 / 439.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004436/0.3512, allocations: 291.1 kB / 439.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.411e-05/0.3513, allocations: 43.77 kB / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.3513, allocations: 15.92 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.3514, allocations: 8 kB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.128e-05/0.3515, allocations: 3.984 kB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.3515, allocations: 4 kB / 439.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001471/0.3516, allocations: 152 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3516, allocations: 0 / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003259/0.352, allocations: 32 kB / 439.8 MB, free: 14.09 MB / 350.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: 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 0.0001888/0.3521, allocations: 115.2 kB / 439.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003421/0.3525, allocations: 135.8 kB / 440 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3525, allocations: 0 / 440 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.078e-05/0.3525, allocations: 21.11 kB / 440 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.3532, allocations: 141.7 kB / 440.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006753/0.3538, allocations: 348.9 kB / 440.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.354, allocations: 123.6 kB / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.39e-05/0.354, allocations: 17.48 kB / 440.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.49e-05/0.3541, allocations: 15.44 kB / 440.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3541, allocations: 0 / 440.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Templates: time 0.006571/0.3606, allocations: 2.721 MB / 443.4 MB, free: 10.45 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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: 4.8199765821918845]