Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001774/0.001774, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.003023/0.003023, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.826/1.826, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 55.91 kB / 378.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3993/0.4013, allocations: 53.36 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003233/0.4045, allocations: 1.57 MB / 433.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004096/0.4049, allocations: 139.5 kB / 433.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.314e-05/0.405, allocations: 0 / 433.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.619e-05/0.4051, allocations: 7.922 kB / 433.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.4052, allocations: 15.94 kB / 433.4 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.4055, allocations: 43.83 kB / 433.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.4056, allocations: 35.84 kB / 433.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.4057, allocations: 8 kB / 433.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.092e-05/0.4057, allocations: 15.92 kB / 433.5 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.823e-05/0.4058, allocations: 15.92 kB / 433.5 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.4058, allocations: 4 kB / 433.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.947e-06/0.4058, allocations: 0 / 433.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.282e-05/0.4058, allocations: 15.92 kB / 433.5 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.833e-05/0.4059, allocations: 27.75 kB / 433.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.406, allocations: 47.47 kB / 433.6 MB, free: 4.988 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.406, allocations: 4 kB / 433.6 MB, free: 4.984 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.409e-06/0.406, allocations: 4 kB / 433.6 MB, free: 4.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.406, allocations: 0 / 433.6 MB, free: 4.98 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004737/0.4065, allocations: 291.7 kB / 433.9 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.4065, allocations: 8.031 kB / 433.9 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.4066, allocations: 12.88 kB / 433.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.4068, allocations: 138.3 kB / 434 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.4068, allocations: 4.375 kB / 434 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.4068, allocations: 8.312 kB / 434 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.4072, allocations: 109.6 kB / 434.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.4072, allocations: 192 / 434.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.4072, allocations: 7.938 kB / 434.1 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4072, allocations: 0 / 434.1 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.901e-05/0.4073, allocations: 23.92 kB / 434.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000433/0.4077, allocations: 228.9 kB / 434.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.4079, allocations: 65.08 kB / 434.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.726e-05/0.408, allocations: 29.77 kB / 434.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.408, allocations: 4 kB / 434.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.4081, allocations: 30.56 kB / 434.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.4081, allocations: 0 / 434.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002921/0.4084, allocations: 81.66 kB / 434.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/0.4084, allocations: 77.11 kB / 434.7 MB, free: 3.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.4086, allocations: 140.7 kB / 434.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.4086, allocations: 25.7 kB / 434.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.4087, allocations: 88.12 kB / 434.9 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.4087, allocations: 7.953 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.4087, allocations: 17.72 kB / 434.9 MB, free: 3.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.4089, allocations: 310.8 kB / 435.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.501e-05/0.4089, allocations: 20.02 kB / 435.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.053e-05/0.409, allocations: 35.36 kB / 435.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.08e-05/0.4091, allocations: 47.36 kB / 435.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4091, allocations: 0 / 435.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001284/0.4092, allocations: 69.56 kB / 435.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.4093, allocations: 4 kB / 435.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.4093, allocations: 3.938 kB / 435.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4093, allocations: 4 kB / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.859e-05/0.4093, allocations: 11.98 kB / 435.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4093, allocations: 4.125 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.391e-05/0.4094, allocations: 7.953 kB / 435.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.4094, allocations: 0 / 435.5 MB, free: 2.859 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (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 prepare postOptimizeDAE: time 9.837e-05/0.4095, allocations: 125.7 kB / 435.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.084e-05/0.4095, allocations: 41.98 kB / 435.6 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.4096, allocations: 16.33 kB / 435.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.4096, allocations: 4.031 kB / 435.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4096, allocations: 3.938 kB / 435.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4096, allocations: 4 kB / 435.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.4098, allocations: 148.6 kB / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4098, allocations: 0 / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.431e-05/0.4098, allocations: 8 kB / 435.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4098, allocations: 0 / 435.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.4099, allocations: 0 / 435.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.4099, allocations: 4 kB / 435.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4099, allocations: 0 / 435.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002198/0.4101, allocations: 168.3 kB / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.4101, allocations: 23.92 kB / 436 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.4101, allocations: 0 / 436 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.26e-05/0.4102, allocations: 4 kB / 436 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.4102, allocations: 3.984 kB / 436 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.466e-06/0.4102, allocations: 0 / 436 MB, free: 2.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.802e-05/0.4103, allocations: 103.3 kB / 436.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4103, allocations: 0 / 436.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.4106, allocations: 4 kB / 436.1 MB, free: 2.125 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: 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 0.0001414/0.4107, allocations: 103.2 kB / 436.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001801/0.4109, allocations: 31.91 kB / 436.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4109, allocations: 0 / 436.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.58e-05/0.4109, allocations: 8 kB / 436.2 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.4113, allocations: 33.25 kB / 436.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003872/0.4117, allocations: 154.8 kB / 436.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003981/0.4121, allocations: 0.6885 MB / 437.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.717e-05/0.4122, allocations: 4 kB / 437.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.894e-05/0.4122, allocations: 11.44 kB / 437.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4122, allocations: 0 / 437.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of Templates: time 0.003296/0.4155, allocations: 0.5225 MB / 437.7 MB, free: 0.5195 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.361153275007382]