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.001279/0.001279, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001609/0.001609, allocations: 212.8 kB / 23.74 MB, free: 4.656 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.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.001534/0.001534, allocations: 59.91 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2614, allocations: 53.36 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003532/0.265, allocations: 1.927 MB / 433.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.2671, allocations: 1.235 MB / 434.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.2672, allocations: 11.88 kB / 434.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006284/0.2678, allocations: 151.5 kB / 434.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004214/0.2683, allocations: 158.6 kB / 434.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005289/0.2688, allocations: 171.4 kB / 434.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002901/0.2691, allocations: 191.5 kB / 435 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.2692, allocations: 29.72 kB / 435 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.2694, allocations: 79.64 kB / 435.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.2695, allocations: 83.61 kB / 435.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.2695, allocations: 8 kB / 435.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.2697, allocations: 55.95 kB / 435.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.934e-05/0.2697, allocations: 47.78 kB / 435.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.457e-05/0.2698, allocations: 67.55 kB / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.2702, allocations: 219.5 kB / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2702, allocations: 0 / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2702, allocations: 0 / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.2702, allocations: 0 / 435.5 MB, free: 2.453 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.0007888/0.271, allocations: 454.7 kB / 436 MB, free: 1.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.271, allocations: 12.03 kB / 436 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.348e-05/0.2711, allocations: 34.75 kB / 436 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.323e-05/0.2711, allocations: 28.8 kB / 436.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.2715, allocations: 217.1 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.2715, allocations: 4.375 kB / 436.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.2715, allocations: 15.94 kB / 436.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.2718, allocations: 142.7 kB / 436.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.2718, allocations: 4 kB / 436.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.2718, allocations: 3.984 kB / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2718, allocations: 0 / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.272, allocations: 35.98 kB / 436.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005018/0.2725, allocations: 333.4 kB / 436.8 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.2727, allocations: 107.9 kB / 436.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.601e-05/0.2728, allocations: 38.56 kB / 436.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.2728, allocations: 4 kB / 437 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.273, allocations: 79.33 kB / 437 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.273, allocations: 0 / 437 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003761/0.2733, allocations: 137.5 kB / 437.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.2735, allocations: 144.4 kB / 437.3 MB, free: 476 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.2738, allocations: 269 kB / 437.6 MB, free: 200 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.2738, allocations: 33.7 kB / 437.6 MB, free: 160 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.974e-05/0.2739, allocations: 116.4 kB / 437.7 MB, free: 40 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.2739, allocations: 23.95 kB / 437.7 MB, free: 16 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.102e-05/0.274, allocations: 29.67 kB / 437.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2741, allocations: 334.8 kB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.224e-05/0.2742, allocations: 20 kB / 438.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.2743, allocations: 73.92 kB / 438.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.2744, allocations: 72.23 kB / 438.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2744, allocations: 0 / 438.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002152/0.2747, allocations: 121.8 kB / 438.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.2747, allocations: 8 kB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2747, allocations: 0 / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.2747, allocations: 4 kB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.549e-05/0.2748, allocations: 15.98 kB / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2748, allocations: 0 / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.057e-05/0.2749, allocations: 15.88 kB / 438.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.2749, allocations: 4 kB / 438.4 MB, free: 15.27 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.0001526/0.275, allocations: 149.9 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.664e-05/0.2751, allocations: 65.53 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000244/0.2754, allocations: 111.3 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2754, allocations: 4 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2754, allocations: 0 / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.2754, allocations: 3.938 kB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.2756, allocations: 200.6 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2756, allocations: 0 / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.829e-05/0.2756, allocations: 8 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.2756, allocations: 4.062 kB / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.2756, allocations: 4 kB / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2756, allocations: 0 / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.2756, allocations: 3.938 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.2759, allocations: 154.7 kB / 439.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.868e-05/0.276, allocations: 35.72 kB / 439.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.276, allocations: 8 kB / 439.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.6e-05/0.2761, allocations: 8 kB / 439.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.2761, allocations: 12.14 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.2761, allocations: 7.938 kB / 439.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.2764, allocations: 204.5 kB / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2764, allocations: 0 / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.2766, allocations: 24 kB / 439.4 MB, free: 14.2 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 (9): * Single equations (assignments): 7 * 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.002005/0.2786, allocations: 1.011 MB / 440.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.2788, allocations: 59.92 kB / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.2788, allocations: 4.25 kB / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.263e-05/0.2789, allocations: 27.92 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.2793, allocations: 77.5 kB / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.2818, allocations: 1.946 MB / 442.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.2821, allocations: 0.7359 MB / 443.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.041e-05/0.2822, allocations: 17.48 kB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.158e-05/0.2823, allocations: 47.42 kB / 443.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2823, allocations: 3.938 kB / 443.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.3164, allocations: 4.87 MB / 448.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.23, allocations: 12.88 kB / 448.2 MB, free: 5.457 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79247e-05 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.csv","/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] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.793373700998927]