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.001199/0.001199, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001062/0.001062, allocations: 148.9 kB / 24.81 MB, free: 9.27 MB / 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.041/1.041, allocations: 173.4 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] 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 2.374e-06/2.374e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.838e-05/3.076e-05, allocations: 2.312 kB / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.002889/0.00292, allocations: 1.94 MB / 270.3 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.004606, allocations: 1.059 MB / 271.4 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/0.004813, allocations: 7.938 kB / 271.4 MB, free: 3.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000671/0.005484, allocations: 155.4 kB / 271.6 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.005761, allocations: 127.4 kB / 271.7 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.006262, allocations: 207.2 kB / 271.9 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.006515, allocations: 187.4 kB / 272.1 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.006647, allocations: 37.72 kB / 272.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.006788, allocations: 103.7 kB / 272.2 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.006894, allocations: 67.8 kB / 272.3 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.006916, allocations: 12 kB / 272.3 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.007053, allocations: 59.89 kB / 272.3 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.231e-05/0.007116, allocations: 47.78 kB / 272.4 MB, free: 2.207 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.682e-05/0.007162, allocations: 39.84 kB / 272.4 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002449/0.007407, allocations: 163.3 kB / 272.6 MB, free: 2.008 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.00741, allocations: 0 / 272.6 MB, free: 2.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.007411, allocations: 4 kB / 272.6 MB, free: 2.004 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.007416, allocations: 0 / 272.6 MB, free: 2.004 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.0005691/0.007985, allocations: 0.54 MB / 273.1 MB, free: 1.422 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.008027, allocations: 8.031 kB / 273.1 MB, free: 1.414 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.154e-05/0.008078, allocations: 28.8 kB / 273.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002529/0.008331, allocations: 232.3 kB / 273.4 MB, free: 1.129 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.008351, allocations: 8.375 kB / 273.4 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.008364, allocations: 8.375 kB / 273.4 MB, free: 1.113 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.00862, allocations: 156.2 kB / 273.6 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.00863, allocations: 3.938 kB / 273.6 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-06/0.008639, allocations: 8 kB / 273.6 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.008647, allocations: 4 kB / 273.6 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.462e-05/0.008691, allocations: 23.91 kB / 273.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004133/0.009105, allocations: 327.3 kB / 273.9 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.009246, allocations: 136.4 kB / 274.1 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.671e-05/0.009293, allocations: 62.66 kB / 274.1 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.009318, allocations: 7.938 kB / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.009422, allocations: 69.05 kB / 274.2 MB, free: 184 kB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.884e-06/0.009424, allocations: 0 / 274.2 MB, free: 184 kB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002143/0.009638, allocations: 121.4 kB / 274.3 MB, free: 56 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.009715, allocations: 136.5 kB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.009889, allocations: 288.2 kB / 274.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.009904, allocations: 30.02 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.009982, allocations: 175.1 kB / 274.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.01, allocations: 15.89 kB / 274.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.01004, allocations: 35.34 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.01017, allocations: 0.5001 MB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.856e-05/0.01019, allocations: 11.98 kB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.128e-05/0.01023, allocations: 56.77 kB / 275.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.29e-05/0.01027, allocations: 43.59 kB / 275.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01027, allocations: 0 / 275.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.867e-05/0.01036, allocations: 85.47 kB / 275.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.01037, allocations: 8.062 kB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.01039, allocations: 0 / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.0104, allocations: 0 / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.944e-05/0.01046, allocations: 8 kB / 275.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.955e-06/0.01046, allocations: 4 kB / 275.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.448e-05/0.01049, allocations: 11.94 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-06/0.0105, allocations: 3.938 kB / 275.7 MB, free: 14.54 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 8.593e-05/0.01058, allocations: 162.2 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.349e-05/0.01065, allocations: 73.47 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.01078, allocations: 95.48 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.01078, allocations: 3.984 kB / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.01078, allocations: 4 kB / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.01079, allocations: 0 / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.01093, allocations: 145.1 kB / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.01093, allocations: 0 / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.149e-05/0.01097, allocations: 15.92 kB / 276.2 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.01097, allocations: 3.938 kB / 276.2 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.01098, allocations: 11.94 kB / 276.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.01098, allocations: 0 / 276.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.01098, allocations: 4 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.01113, allocations: 163.5 kB / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.229e-05/0.01118, allocations: 27.84 kB / 276.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.01121, allocations: 7.938 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.202e-05/0.01126, allocations: 16.05 kB / 276.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/0.0113, allocations: 0 / 276.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.01132, allocations: 7.984 kB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001256/0.01144, allocations: 197.1 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01144, allocations: 4 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.01164, allocations: 23.94 kB / 276.7 MB, free: 13.51 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.0009914/0.01263, allocations: 395.5 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.01274, allocations: 55.59 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.01274, allocations: 0 / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.23e-05/0.01278, allocations: 27.61 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.01304, allocations: 65.84 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000404/0.01344, allocations: 333.9 kB / 277.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.799e-05/0.01349, allocations: 75.98 kB / 277.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.264e-05/0.01354, allocations: 21.97 kB / 277.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.685e-05/0.01364, allocations: 110.2 kB / 277.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01364, allocations: 0 / 277.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of Templates: time 0.005172/0.01881, allocations: 3.066 MB / 280.8 MB, free: 9.516 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8035743976943195]