Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001393/0.001393, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001574/0.001574, allocations: 190 kB / 23.72 MB, free: 4.68 MB / 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.725/1.725, allocations: 225.6 MB / 252.5 MB, free: 13 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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 51.91 kB / 370.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3758, allocations: 52.18 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.005615/0.3814, allocations: 1.948 MB / 425.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00304/0.3844, allocations: 1.106 MB / 426.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003012/0.3847, allocations: 3.938 kB / 426.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009772/0.3857, allocations: 163.1 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005336/0.3862, allocations: 119.5 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009095/0.3872, allocations: 214.8 kB / 426.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.3875, allocations: 191.4 kB / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.3877, allocations: 17.81 kB / 426.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002362/0.3879, allocations: 83.62 kB / 426.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.3882, allocations: 87.61 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.309e-05/0.3882, allocations: 8 kB / 427 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.3885, allocations: 67.88 kB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.3886, allocations: 47.84 kB / 427.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.3887, allocations: 71.48 kB / 427.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006376/0.3893, allocations: 220.3 kB / 427.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.3893, allocations: 0 / 427.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3893, allocations: 0 / 427.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.3894, allocations: 0 / 427.4 MB, free: 10.35 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001316/0.3907, allocations: 462.7 kB / 427.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.3907, allocations: 8.031 kB / 427.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.929e-05/0.3908, allocations: 24.8 kB / 427.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.3913, allocations: 221 kB / 428.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.3913, allocations: 12.31 kB / 428.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.3913, allocations: 8.125 kB / 428.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.3918, allocations: 167.6 kB / 428.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3918, allocations: 3.984 kB / 428.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.3918, allocations: 0 / 428.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.3918, allocations: 4 kB / 428.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.392, allocations: 39.91 kB / 428.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007635/0.3927, allocations: 342.3 kB / 428.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.3931, allocations: 134.5 kB / 428.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.3932, allocations: 47.42 kB / 428.9 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.3933, allocations: 11.94 kB / 428.9 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.3935, allocations: 75.45 kB / 429 MB, free: 8.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.474e-06/0.3935, allocations: 0 / 429 MB, free: 8.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005714/0.394, allocations: 165.4 kB / 429.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.3942, allocations: 154.2 kB / 429.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003839/0.3946, allocations: 269.1 kB / 429.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.3946, allocations: 30.08 kB / 429.6 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.3947, allocations: 128.3 kB / 429.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.34e-05/0.3948, allocations: 23.83 kB / 429.7 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.18e-05/0.3949, allocations: 37.66 kB / 429.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002389/0.3951, allocations: 330.8 kB / 430.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.344e-05/0.3952, allocations: 19.98 kB / 430.1 MB, free: 7.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.3953, allocations: 83.72 kB / 430.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.3955, allocations: 98.16 kB / 430.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.3955, allocations: 4 kB / 430.3 MB, free: 7.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003014/0.3958, allocations: 129.5 kB / 430.4 MB, free: 7.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.3958, allocations: 4 kB / 430.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.3959, allocations: 4 kB / 430.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.677e-05/0.3959, allocations: 3.984 kB / 430.4 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.396, allocations: 15.94 kB / 430.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.396, allocations: 8.188 kB / 430.4 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.471e-05/0.3961, allocations: 15.88 kB / 430.5 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.3961, allocations: 7.938 kB / 430.5 MB, free: 6.984 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.000201/0.3963, allocations: 146.6 kB / 430.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.3965, allocations: 73.55 kB / 430.7 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.3967, allocations: 111.3 kB / 430.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3968, allocations: 4.094 kB / 430.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.3968, allocations: 0 / 430.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.3968, allocations: 11.92 kB / 430.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.3971, allocations: 196.6 kB / 431 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3971, allocations: 4 kB / 431 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.913e-05/0.3972, allocations: 7.984 kB / 431 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3972, allocations: 0 / 431 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.3972, allocations: 4 kB / 431 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3972, allocations: 0 / 431 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.3972, allocations: 4 kB / 431 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003618/0.3975, allocations: 179.4 kB / 431.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.715e-05/0.3976, allocations: 32.02 kB / 431.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.3977, allocations: 4 kB / 431.2 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.663e-05/0.3977, allocations: 7.938 kB / 431.2 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.614e-05/0.3978, allocations: 11.98 kB / 431.2 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.3978, allocations: 11.94 kB / 431.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002543/0.3981, allocations: 196.5 kB / 431.4 MB, free: 5.906 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3981, allocations: 0 / 431.4 MB, free: 5.906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003323/0.3984, allocations: 35.92 kB / 431.5 MB, free: 5.871 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001844/0.4003, allocations: 421.8 kB / 431.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003287/0.4006, allocations: 80.09 kB / 432 MB, free: 5.535 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4006, allocations: 0 / 432 MB, free: 5.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.4007, allocations: 27.92 kB / 432 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006109/0.4013, allocations: 75.5 kB / 432.1 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008436/0.4022, allocations: 341.8 kB / 432.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.4027, allocations: 0.7435 MB / 433.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.4028, allocations: 17.48 kB / 433.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.918e-05/0.4028, allocations: 27.42 kB / 433.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4028, allocations: 0 / 433.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of Templates: time 0.008298/0.4111, allocations: 2.718 MB / 435.9 MB, free: 1.562 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.21917212381959]