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.0019/0.0019, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001899/0.001899, allocations: 153.5 kB / 24.26 MB, free: 172 kB / 18.57 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.507/1.507, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 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 1.313e-06/1.313e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.731e-05/2.862e-05, allocations: 6.25 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003713/0.003742, allocations: 1.917 MB / 269.2 MB, free: 4.801 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.005776, allocations: 1.056 MB / 270.3 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.005892, allocations: 7.938 kB / 270.3 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006315/0.006523, allocations: 151.4 kB / 270.4 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003435/0.006867, allocations: 135.4 kB / 270.6 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.007423, allocations: 203.3 kB / 270.8 MB, free: 3.25 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.007731, allocations: 199.3 kB / 271 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.007855, allocations: 21.81 kB / 271 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.008043, allocations: 107.7 kB / 271.1 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.008175, allocations: 63.8 kB / 271.2 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.464e-05/0.008209, allocations: 15.94 kB / 271.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.00836, allocations: 63.88 kB / 271.2 MB, free: 2.785 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.808e-05/0.008438, allocations: 43.84 kB / 271.3 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.3e-05/0.008511, allocations: 39.86 kB / 271.3 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003693/0.008881, allocations: 223.1 kB / 271.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.008883, allocations: 0 / 271.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.008884, allocations: 0 / 271.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.008889, allocations: 0 / 271.5 MB, free: 2.484 MB / 250.7 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.0008247/0.009714, allocations: 0.5592 MB / 272.1 MB, free: 1.883 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.009757, allocations: 12.03 kB / 272.1 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.754e-05/0.009834, allocations: 28.8 kB / 272.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.01021, allocations: 227.5 kB / 272.3 MB, free: 1.594 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.01023, allocations: 8.375 kB / 272.4 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.01024, allocations: 8.375 kB / 272.4 MB, free: 1.578 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.01061, allocations: 176.2 kB / 272.5 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.01063, allocations: 7.875 kB / 272.5 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.01064, allocations: 0 / 272.5 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.01064, allocations: 0 / 272.5 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.01076, allocations: 39.97 kB / 272.6 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005573/0.01131, allocations: 390.7 kB / 273 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002879/0.0116, allocations: 160.4 kB / 273.1 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.01172, allocations: 66.67 kB / 273.2 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.01175, allocations: 4 kB / 273.2 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001596/0.01191, allocations: 81.03 kB / 273.3 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.01191, allocations: 4 kB / 273.3 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003951/0.01231, allocations: 153.4 kB / 273.4 MB, free: 360 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.01241, allocations: 140.5 kB / 273.6 MB, free: 188 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.0128, allocations: 332.3 kB / 273.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.01283, allocations: 29.7 kB / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.01297, allocations: 175.1 kB / 274.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.013, allocations: 15.91 kB / 274.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.01306, allocations: 43.31 kB / 274.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005025/0.01357, allocations: 0.5083 MB / 274.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.929e-05/0.01363, allocations: 19.98 kB / 274.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.897e-05/0.01373, allocations: 72.75 kB / 274.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.01384, allocations: 55.31 kB / 274.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.01384, allocations: 0 / 274.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001839/0.01402, allocations: 93.53 kB / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.01404, allocations: 4 kB / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.01404, allocations: 320 / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.01406, allocations: 3.984 kB / 274.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.051e-05/0.01414, allocations: 15.94 kB / 274.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.01415, allocations: 8.062 kB / 274.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.678e-05/0.0142, allocations: 8 kB / 274.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.01421, allocations: 0 / 274.9 MB, free: 14.73 MB / 266.7 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.0001455/0.01436, allocations: 180.4 kB / 275.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.01447, allocations: 81.48 kB / 275.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002464/0.01472, allocations: 99.45 kB / 275.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.01473, allocations: 4 kB / 275.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.01473, allocations: 3.938 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.01474, allocations: 7.984 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/0.01497, allocations: 208.6 kB / 275.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.01498, allocations: 3.984 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.665e-05/0.01501, allocations: 8 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.01502, allocations: 7.984 kB / 275.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.01503, allocations: 0 / 275.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.01503, allocations: 4 kB / 275.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01504, allocations: 0 / 275.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.01535, allocations: 199.2 kB / 275.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.761e-05/0.01543, allocations: 31.89 kB / 275.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.837e-05/0.01547, allocations: 4 kB / 275.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.16e-05/0.01553, allocations: 7.984 kB / 275.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.01557, allocations: 11.94 kB / 275.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.01559, allocations: 7.984 kB / 275.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002227/0.01581, allocations: 225.1 kB / 276 MB, free: 13.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01581, allocations: 0 / 276 MB, free: 13.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002399/0.01605, allocations: 31.94 kB / 276 MB, free: 13.53 MB / 266.7 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.002887/0.01894, allocations: 455.2 kB / 276.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002155/0.01915, allocations: 67.67 kB / 276.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01915, allocations: 0 / 276.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.561e-05/0.01924, allocations: 39.59 kB / 276.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.0197, allocations: 78.72 kB / 276.7 MB, free: 13.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006106/0.02031, allocations: 340.8 kB / 277 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.02046, allocations: 123.9 kB / 277.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.695e-05/0.02052, allocations: 25.55 kB / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.056e-05/0.02057, allocations: 20.5 kB / 277.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.02057, allocations: 0 / 277.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of Templates: time 0.00729/0.02786, allocations: 2.801 MB / 280 MB, free: 9.773 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 240] 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: 4.467111365986057]