Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.001719/0.001719, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002297/0.002297, allocations: 214.1 kB / 24.48 MB, free: 3.84 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.455/1.455, allocations: 230.6 MB / 258.2 MB, free: 7.809 MB / 206.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 47.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.255, allocations: 53.36 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003495/0.2585, allocations: 1.892 MB / 434.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.2606, allocations: 1.153 MB / 435.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2607, allocations: 4 kB / 435.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006071/0.2613, allocations: 155.5 kB / 435.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003947/0.2617, allocations: 155.4 kB / 435.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004483/0.2622, allocations: 171.4 kB / 435.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002777/0.2625, allocations: 195.5 kB / 436 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.2626, allocations: 25.53 kB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.2627, allocations: 79.69 kB / 436.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.2628, allocations: 79.55 kB / 436.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.2629, allocations: 12 kB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.263, allocations: 47.97 kB / 436.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-05/0.2631, allocations: 47.83 kB / 436.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.77e-05/0.2631, allocations: 59.55 kB / 436.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.2635, allocations: 210 kB / 436.6 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2635, allocations: 4 kB / 436.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2635, allocations: 4 kB / 436.6 MB, free: 2.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.2635, allocations: 3.984 kB / 436.6 MB, free: 2.434 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007558/0.2642, allocations: 450.7 kB / 437 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2643, allocations: 12.03 kB / 437 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.817e-05/0.2643, allocations: 20.8 kB / 437.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.2647, allocations: 205.2 kB / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.2647, allocations: 384 / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.2647, allocations: 12.12 kB / 437.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.265, allocations: 149 kB / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.2651, allocations: 0 / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.2651, allocations: 0 / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2651, allocations: 7.984 kB / 437.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.2652, allocations: 39.91 kB / 437.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004796/0.2657, allocations: 302 kB / 437.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.2659, allocations: 107.9 kB / 437.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.674e-05/0.266, allocations: 46.56 kB / 437.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.266, allocations: 0 / 437.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001622/0.2662, allocations: 79.38 kB / 438 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.2662, allocations: 0 / 438 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003597/0.2665, allocations: 153.4 kB / 438.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.2666, allocations: 103.1 kB / 438.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.2669, allocations: 281 kB / 438.5 MB, free: 312 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.2669, allocations: 33.7 kB / 438.5 MB, free: 272 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.499e-05/0.267, allocations: 120.1 kB / 438.7 MB, free: 148 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.267, allocations: 11.91 kB / 438.7 MB, free: 136 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.168e-05/0.2671, allocations: 33.66 kB / 438.7 MB, free: 96 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.2673, allocations: 334.7 kB / 439 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.406e-05/0.2673, allocations: 23.98 kB / 439.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.2674, allocations: 94.78 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.2676, allocations: 76.25 kB / 439.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2676, allocations: 4 kB / 439.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000207/0.2678, allocations: 113.5 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2678, allocations: 8 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2678, allocations: 3.984 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2678, allocations: 4 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.486e-05/0.2679, allocations: 11.94 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.2679, allocations: 8.125 kB / 439.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.761e-05/0.268, allocations: 11.94 kB / 439.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.268, allocations: 4 kB / 439.4 MB, free: 15.36 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.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 (11): * Single equations (assignments): 11 * 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.0001419/0.2681, allocations: 154.4 kB / 439.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-05/0.2682, allocations: 57.55 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002509/0.2685, allocations: 123.4 kB / 439.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2685, allocations: 4 kB / 439.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2685, allocations: 0 / 439.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.2685, allocations: 8.359 kB / 439.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.2687, allocations: 161.2 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.2687, allocations: 11.98 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.163e-05/0.2687, allocations: 4 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2687, allocations: 0 / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.2687, allocations: 4 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2687, allocations: 0 / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2687, allocations: 0 / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.269, allocations: 170.5 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.2691, allocations: 31.84 kB / 440.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.2691, allocations: 4 kB / 440.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.088e-05/0.2691, allocations: 11.98 kB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.2692, allocations: 4 kB / 440.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.2692, allocations: 4 kB / 440.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.2694, allocations: 208.4 kB / 440.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2694, allocations: 0 / 440.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002488/0.2697, allocations: 27.94 kB / 440.4 MB, free: 14.31 MB / 350.1 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.001699/0.2714, allocations: 458.3 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.2716, allocations: 71.84 kB / 440.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.2716, allocations: 4 kB / 440.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.476e-05/0.2717, allocations: 23.92 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.2721, allocations: 72.33 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006325/0.2727, allocations: 351.4 kB / 441.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.2728, allocations: 119.9 kB / 441.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.748e-05/0.2729, allocations: 23.38 kB / 441.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2729, allocations: 3.938 kB / 441.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of Templates: time 0.005202/0.2781, allocations: 2.712 MB / 444.2 MB, free: 10.62 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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: 7.388965204823762]