Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.0009855/0.0009855, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009172/0.0009172, allocations: 147.3 kB / 24.97 MB, free: 8.832 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.5 MB, free: 9.344 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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.606e-05/2.803e-05, allocations: 2.312 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002888/0.002916, allocations: 1.924 MB / 270 MB, free: 4.801 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.004191, allocations: 1.032 MB / 271 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.004295, allocations: 7.938 kB / 271 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004667/0.004761, allocations: 155.5 kB / 271.2 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002137/0.004975, allocations: 119.4 kB / 271.3 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.005323, allocations: 203.3 kB / 271.5 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.005526, allocations: 179.4 kB / 271.7 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.005632, allocations: 21.8 kB / 271.7 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.005743, allocations: 103.7 kB / 271.8 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.998e-05/0.005843, allocations: 67.8 kB / 271.9 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.005867, allocations: 11.98 kB / 271.9 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.005973, allocations: 51.91 kB / 271.9 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.006042, allocations: 51.83 kB / 272 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.37e-05/0.006096, allocations: 35.86 kB / 272 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.006331, allocations: 159.3 kB / 272.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.006333, allocations: 0 / 272.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.006334, allocations: 0 / 272.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.006338, allocations: 0 / 272.2 MB, free: 2.613 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005463/0.006885, allocations: 0.544 MB / 272.7 MB, free: 2.027 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.006915, allocations: 8.031 kB / 272.7 MB, free: 2.02 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.006965, allocations: 28.78 kB / 272.7 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.00719, allocations: 220.3 kB / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.007213, allocations: 8.375 kB / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.007226, allocations: 4.375 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.007461, allocations: 140.6 kB / 273.1 MB, free: 1.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.007468, allocations: 3.938 kB / 273.1 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.007478, allocations: 8 kB / 273.1 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.007485, allocations: 0 / 273.1 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.599e-05/0.007531, allocations: 19.92 kB / 273.1 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003191/0.00785, allocations: 343.1 kB / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.007972, allocations: 117.3 kB / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.386e-05/0.008016, allocations: 47 kB / 273.6 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.008035, allocations: 3.984 kB / 273.6 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.994e-05/0.008125, allocations: 69.05 kB / 273.7 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.008126, allocations: 0 / 273.7 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.000217/0.008343, allocations: 113.5 kB / 273.8 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.008392, allocations: 110.8 kB / 273.9 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.008569, allocations: 288.3 kB / 274.2 MB, free: 320 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.008582, allocations: 25.7 kB / 274.2 MB, free: 288 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.56e-05/0.008658, allocations: 163.1 kB / 274.4 MB, free: 120 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.008678, allocations: 19.92 kB / 274.4 MB, free: 100 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.008713, allocations: 39.34 kB / 274.5 MB, free: 52 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.008843, allocations: 0.4962 MB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.19e-05/0.008865, allocations: 12.23 kB / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.379e-05/0.008908, allocations: 60.77 kB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.902e-05/0.008957, allocations: 59.17 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.008959, allocations: 0 / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.693e-05/0.009046, allocations: 85.48 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.009057, allocations: 8.062 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.009062, allocations: 0 / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.009073, allocations: 0 / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.86e-05/0.009131, allocations: 12 kB / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.009137, allocations: 0 / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.069e-05/0.009167, allocations: 7.984 kB / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.009172, allocations: 0 / 275.2 MB, free: 15.27 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 7.466e-05/0.009247, allocations: 164.5 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.009297, allocations: 65.53 kB / 275.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006891/0.009986, allocations: 91.52 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.009988, allocations: 4 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.009993, allocations: 4 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.009997, allocations: 0 / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.01013, allocations: 180.4 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01013, allocations: 0 / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.192e-05/0.01016, allocations: 4 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.289e-06/0.01016, allocations: 4 kB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.01017, allocations: 7.984 kB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.01017, allocations: 64 / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.01018, allocations: 8 kB / 275.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001397/0.01032, allocations: 171.5 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.01036, allocations: 35.78 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.01038, allocations: 4 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.098e-05/0.01041, allocations: 7.984 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.01045, allocations: 4 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.01046, allocations: 11.98 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.01057, allocations: 193.1 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.01057, allocations: 0 / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000161/0.01073, allocations: 27.98 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.0008342/0.01156, allocations: 400 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.01167, allocations: 51.59 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01167, allocations: 0 / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.578e-05/0.01171, allocations: 35.72 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.01195, allocations: 68.58 kB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000362/0.01232, allocations: 294 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.446e-05/0.01236, allocations: 75.83 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.993e-05/0.0124, allocations: 17.48 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.01244, allocations: 20.69 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of SimCode: time 1.162e-06/0.01244, allocations: 4 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of Templates: time 0.004314/0.01675, allocations: 2.587 MB / 279.7 MB, free: 10.79 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.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.9507888820953667]