Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001304/0.001304, allocations: 84.3 kB / 20.68 MB, free: 1.035 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.001387/0.001387, allocations: 168.8 kB / 23.95 MB, free: 4.172 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.487/1.487, allocations: 177.2 MB / 204.3 MB, free: 9.164 MB / 190.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 3.938 kB / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.648e-05/2.81e-05, allocations: 6.688 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003338/0.003366, allocations: 1.914 MB / 327 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.005696, allocations: 1.181 MB / 328.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.00583, allocations: 11.75 kB / 328.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006904/0.00652, allocations: 159.8 kB / 328.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004314/0.006952, allocations: 163.7 kB / 328.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005629/0.007515, allocations: 176.3 kB / 328.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003083/0.007823, allocations: 204.8 kB / 328.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.007941, allocations: 23.19 kB / 328.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.008134, allocations: 110.9 kB / 329 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.008267, allocations: 66.88 kB / 329.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.135e-05/0.008298, allocations: 10.22 kB / 329.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.008462, allocations: 68.92 kB / 329.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.768e-05/0.008549, allocations: 45.77 kB / 329.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.573e-05/0.008625, allocations: 38.58 kB / 329.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.009016, allocations: 225.7 kB / 329.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.00902, allocations: 0 / 329.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.009021, allocations: 1.125 kB / 329.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.009028, allocations: 0 / 329.4 MB, free: 13.93 MB / 302.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.0008018/0.009829, allocations: 467.7 kB / 329.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.009867, allocations: 8.812 kB / 329.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.248e-05/0.009939, allocations: 23.81 kB / 329.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.01034, allocations: 213.9 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.01036, allocations: 7.062 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.01038, allocations: 7.609 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.01077, allocations: 175.2 kB / 330.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.01079, allocations: 3.938 kB / 330.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.0108, allocations: 1.344 kB / 330.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.01081, allocations: 2.531 kB / 330.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001227/0.01093, allocations: 42.41 kB / 330.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005171/0.01145, allocations: 295.6 kB / 330.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.01174, allocations: 142.3 kB / 330.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.01187, allocations: 56.41 kB / 330.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.0119, allocations: 7.578 kB / 330.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001867/0.01208, allocations: 76.73 kB / 330.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.713e-06/0.01208, allocations: 0 / 330.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004716/0.01256, allocations: 161.9 kB / 331.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.01269, allocations: 141.3 kB / 331.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003759/0.01306, allocations: 285.3 kB / 331.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.01309, allocations: 26.77 kB / 331.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.01321, allocations: 125.7 kB / 331.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.01325, allocations: 22.48 kB / 331.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.87e-05/0.01331, allocations: 21.88 kB / 331.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.01351, allocations: 332.2 kB / 332 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.444e-05/0.01358, allocations: 22.34 kB / 332 MB, free: 11.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.01369, allocations: 70.92 kB / 332.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.01384, allocations: 67.95 kB / 332.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.01384, allocations: 4.031 kB / 332.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000224/0.01407, allocations: 95.77 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.01409, allocations: 4.844 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.0141, allocations: 1.188 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.01412, allocations: 1.219 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.01422, allocations: 12.19 kB / 332.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/0.01424, allocations: 9.016 kB / 332.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.569e-05/0.01431, allocations: 7.016 kB / 332.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.01432, allocations: 7.219 kB / 332.3 MB, free: 11.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001603/0.01448, allocations: 148.7 kB / 332.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.0146, allocations: 74.61 kB / 332.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003035/0.0149, allocations: 114.5 kB / 332.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.01491, allocations: 3.281 kB / 332.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.01491, allocations: 5.062 kB / 332.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.01492, allocations: 1.094 kB / 332.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.01513, allocations: 163.7 kB / 332.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.01513, allocations: 1.031 kB / 332.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.797e-05/0.01517, allocations: 10.61 kB / 332.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.01517, allocations: 5.094 kB / 332.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.01519, allocations: 6.75 kB / 332.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.01519, allocations: 1.375 kB / 332.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.01519, allocations: 1.062 kB / 332.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.0155, allocations: 178.8 kB / 333 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.992e-05/0.01559, allocations: 47.3 kB / 333.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.821e-05/0.01562, allocations: 10.27 kB / 333.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.881e-05/0.01569, allocations: 7.375 kB / 333.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/0.01574, allocations: 7.328 kB / 333.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.01575, allocations: 8.531 kB / 333.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.01599, allocations: 209.5 kB / 333.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01599, allocations: 0 / 333.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00027/0.01626, allocations: 23.41 kB / 333.3 MB, free: 10.71 MB / 302.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 (12): * Single equations (assignments): 10 * 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.001757/0.01801, allocations: 447.7 kB / 333.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.01827, allocations: 64.19 kB / 333.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.01827, allocations: 1 kB / 333.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.01838, allocations: 39.69 kB / 333.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005216/0.0189, allocations: 84.62 kB / 333.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007352/0.01963, allocations: 351.1 kB / 334.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.0198, allocations: 124.5 kB / 334.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.62e-05/0.01987, allocations: 22.67 kB / 334.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.811e-05/0.01993, allocations: 23.73 kB / 334.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01993, allocations: 0 / 334.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Templates: time 0.007661/0.02759, allocations: 2.829 MB / 337.3 MB, free: 8.582 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.392151325941086]