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.002122/0.002122, allocations: 114.2 kB / 19.04 MB, free: 3.277 MB / 14.72 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.002132/0.002132, allocations: 184.5 kB / 22.21 MB, free: 108 kB / 14.72 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.701/1.701, allocations: 225.6 MB / 250.8 MB, free: 13.4 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002265/0.002265, allocations: 55.91 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3814, allocations: 52.14 MB / 420.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004088/0.3855, allocations: 1.88 MB / 422.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.3872, allocations: 0.697 MB / 423.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.3874, allocations: 7.938 kB / 423.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.3876, allocations: 19.73 kB / 423.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001852/0.3878, allocations: 31.78 kB / 423.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006817/0.3884, allocations: 157.7 kB / 423.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002781/0.3887, allocations: 147.6 kB / 423.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3889, allocations: 41.53 kB / 423.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.389, allocations: 59.72 kB / 423.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.3892, allocations: 63.67 kB / 424 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.3892, allocations: 12 kB / 424 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.3893, allocations: 47.97 kB / 424 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.3894, allocations: 39.84 kB / 424.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.948e-05/0.3895, allocations: 83.47 kB / 424.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.3899, allocations: 196.5 kB / 424.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3899, allocations: 0 / 424.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3899, allocations: 0 / 424.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3899, allocations: 0 / 424.3 MB, free: 11.66 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.00091/0.3908, allocations: 486.6 kB / 424.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.3908, allocations: 11.89 kB / 424.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.759e-05/0.3909, allocations: 20.84 kB / 424.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004859/0.3914, allocations: 248.2 kB / 425.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.3914, allocations: 4.562 kB / 425.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.3915, allocations: 16.12 kB / 425.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007609/0.3922, allocations: 326.5 kB / 425.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3922, allocations: 0 / 425.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.836e-05/0.3923, allocations: 0 / 425.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3923, allocations: 0 / 425.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.3925, allocations: 95.2 kB / 425.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005083/0.393, allocations: 349.5 kB / 425.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/0.3935, allocations: 254.2 kB / 426.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.3937, allocations: 96.36 kB / 426.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007789/0.3945, allocations: 0.5817 MB / 426.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.3946, allocations: 46.78 kB / 426.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.984e-06/0.3946, allocations: 0 / 426.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006681/0.3952, allocations: 240.6 kB / 427.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.3953, allocations: 118.9 kB / 427.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.3956, allocations: 198.2 kB / 427.4 MB, free: 8.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.3956, allocations: 25.7 kB / 427.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.489e-05/0.3957, allocations: 112.5 kB / 427.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.324e-05/0.3957, allocations: 15.91 kB / 427.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.845e-05/0.3958, allocations: 37.7 kB / 427.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.396, allocations: 326.8 kB / 427.9 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.165e-05/0.3961, allocations: 39.98 kB / 427.9 MB, free: 7.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.3963, allocations: 169.1 kB / 428.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.3966, allocations: 196.1 kB / 428.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3966, allocations: 0 / 428.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003664/0.397, allocations: 217.1 kB / 428.5 MB, free: 6.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.397, allocations: 11.98 kB / 428.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.397, allocations: 7.938 kB / 428.5 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.397, allocations: 4.594 kB / 428.5 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3972, allocations: 51.92 kB / 428.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.3972, allocations: 7.938 kB / 428.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.3973, allocations: 19.94 kB / 428.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.3973, allocations: 8 kB / 428.6 MB, free: 6.871 MB / 334.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.000178/0.3975, allocations: 161.1 kB / 428.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003305/0.3979, allocations: 161.4 kB / 428.9 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004118/0.3983, allocations: 185.9 kB / 429.1 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.3983, allocations: 7.938 kB / 429.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3983, allocations: 0 / 429.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3983, allocations: 0 / 429.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.3986, allocations: 229.5 kB / 429.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.659e-06/0.3986, allocations: 3.938 kB / 429.3 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.3987, allocations: 35.97 kB / 429.4 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.133e-05/0.3988, allocations: 4 kB / 429.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.3988, allocations: 0 / 429.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3988, allocations: 0 / 429.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3988, allocations: 8 kB / 429.4 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/0.3993, allocations: 283.1 kB / 429.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.3995, allocations: 124.8 kB / 429.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.215e-05/0.3995, allocations: 8 kB / 429.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.3997, allocations: 15.98 kB / 429.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.3997, allocations: 0 / 429.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.3997, allocations: 11.98 kB / 429.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001641/0.3999, allocations: 139.2 kB / 429.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3999, allocations: 0 / 429.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.4003, allocations: 32 kB / 430 MB, free: 5.383 MB / 334.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.0002641/0.4005, allocations: 111.2 kB / 430.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004014/0.4009, allocations: 139.8 kB / 430.2 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4009, allocations: 0 / 430.2 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.181e-05/0.401, allocations: 11.92 kB / 430.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007039/0.4017, allocations: 154.7 kB / 430.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008502/0.4025, allocations: 344.7 kB / 430.7 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000518/0.403, allocations: 0.7361 MB / 431.5 MB, free: 3.828 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.568e-05/0.4031, allocations: 21.53 kB / 431.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.818e-05/0.4032, allocations: 15.44 kB / 431.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4032, allocations: 0 / 431.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of Templates: time 0.006975/0.4101, allocations: 2.431 MB / 433.9 MB, free: 1.379 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.102991391904652]