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.001684/0.001684, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002005/0.002005, allocations: 208.9 kB / 23.73 MB, free: 4.523 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.381/1.381, allocations: 230.6 MB / 257.5 MB, free: 7.797 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 51.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2503, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003818/0.2541, allocations: 1.882 MB / 433 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.2564, allocations: 1.15 MB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.2565, allocations: 7.938 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006901/0.2572, allocations: 159.5 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000523/0.2578, allocations: 155.4 kB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.2583, allocations: 167.5 kB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003031/0.2586, allocations: 187.5 kB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.2587, allocations: 29.52 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.2589, allocations: 87.58 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.259, allocations: 75.67 kB / 435 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.2591, allocations: 8 kB / 435 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.2592, allocations: 63.89 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.474e-05/0.2593, allocations: 43.84 kB / 435.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.993e-05/0.2594, allocations: 59.59 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.2598, allocations: 205 kB / 435.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2598, allocations: 0 / 435.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2598, allocations: 7.938 kB / 435.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.2598, allocations: 0 / 435.3 MB, free: 2.359 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.0008739/0.2607, allocations: 454.7 kB / 435.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.2607, allocations: 8.031 kB / 435.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.2607, allocations: 38.75 kB / 435.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.298e-05/0.2608, allocations: 20.8 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003728/0.2612, allocations: 217.1 kB / 436.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.2612, allocations: 8.375 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.2612, allocations: 7.938 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.2616, allocations: 145.2 kB / 436.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2616, allocations: 0 / 436.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.2616, allocations: 7.922 kB / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2616, allocations: 0 / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.2617, allocations: 39.92 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.2622, allocations: 321.5 kB / 436.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002383/0.2625, allocations: 103.9 kB / 436.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.71e-05/0.2626, allocations: 46.56 kB / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.2626, allocations: 4 kB / 436.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.2628, allocations: 79.31 kB / 436.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.2628, allocations: 0 / 436.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003929/0.2632, allocations: 145.5 kB / 437 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/0.2632, allocations: 114.8 kB / 437.1 MB, free: 428 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.2635, allocations: 277 kB / 437.3 MB, free: 144 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.2636, allocations: 33.95 kB / 437.4 MB, free: 104 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.2637, allocations: 120.3 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.2637, allocations: 11.81 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.653e-05/0.2638, allocations: 37.66 kB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2639, allocations: 330.8 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.106e-05/0.264, allocations: 23.98 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.2641, allocations: 86.84 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.2642, allocations: 80.25 kB / 438 MB, free: 15.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.2642, allocations: 4 kB / 438 MB, free: 15.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002305/0.2645, allocations: 113.5 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.2645, allocations: 8 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.2645, allocations: 0 / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.2645, allocations: 7.984 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.923e-05/0.2646, allocations: 8 kB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.2646, allocations: 7.938 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.607e-05/0.2647, allocations: 23.95 kB / 438.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.2647, allocations: 7.984 kB / 438.2 MB, free: 15.18 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.0001345/0.2648, allocations: 145.7 kB / 438.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.484e-05/0.2649, allocations: 61.53 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002552/0.2651, allocations: 111.4 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2651, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.2652, allocations: 4 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.2652, allocations: 3.938 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.2654, allocations: 196.6 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2654, allocations: 4.375 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-05/0.2654, allocations: 11.94 kB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2654, allocations: 0 / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.2654, allocations: 4 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.2654, allocations: 4 kB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2654, allocations: 0 / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002723/0.2657, allocations: 166.6 kB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.121e-05/0.2658, allocations: 31.78 kB / 438.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.2658, allocations: 11.98 kB / 439 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.211e-05/0.2659, allocations: 4 kB / 439 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.2659, allocations: 15.92 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.2659, allocations: 0 / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.2661, allocations: 204.5 kB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2661, allocations: 0 / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002576/0.2664, allocations: 28 kB / 439.2 MB, free: 14.11 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.002066/0.2685, allocations: 1.044 MB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002217/0.2687, allocations: 83.77 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2687, allocations: 4 kB / 440.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.129e-05/0.2688, allocations: 23.98 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.2691, allocations: 60.34 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.2715, allocations: 1.963 MB / 442.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.2716, allocations: 131.8 kB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.428e-05/0.2717, allocations: 21.62 kB / 442.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.962e-05/0.2718, allocations: 47.42 kB / 442.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2718, allocations: 0 / 442.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0331/0.3049, allocations: 5.443 MB / 448 MB, free: 5.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.75, allocations: 19.28 kB / 448 MB, free: 5.371 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] 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: 13.117420568014495]