Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001245/0.001245, allocations: 112 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.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.001464/0.001464, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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.461/1.461, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 43.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3146, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003801/0.3184, allocations: 1.908 MB / 424.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.3207, allocations: 1.169 MB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.3209, allocations: 7.938 kB / 425.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000354/0.3212, allocations: 59.67 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003035/0.3215, allocations: 99.58 kB / 425.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007948/0.3223, allocations: 258 kB / 426.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002625/0.3226, allocations: 175.5 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.3227, allocations: 17.75 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.3228, allocations: 79.69 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.323, allocations: 79.67 kB / 426.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.323, allocations: 12 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.3232, allocations: 71.89 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.191e-05/0.3233, allocations: 55.81 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.3234, allocations: 79.42 kB / 426.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003521/0.3237, allocations: 231.4 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3237, allocations: 0 / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.3237, allocations: 0 / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.3237, allocations: 0 / 426.9 MB, free: 10.32 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.000742/0.3245, allocations: 478.5 kB / 427.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3245, allocations: 12.03 kB / 427.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.3246, allocations: 38.75 kB / 427.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.357e-05/0.3246, allocations: 20.8 kB / 427.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004559/0.3251, allocations: 237.4 kB / 427.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.3251, allocations: 4.375 kB / 427.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.3251, allocations: 11.94 kB / 427.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003782/0.3255, allocations: 162.7 kB / 427.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3255, allocations: 0 / 427.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3255, allocations: 0 / 427.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3255, allocations: 4 kB / 427.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.3257, allocations: 39.91 kB / 427.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.3262, allocations: 349.5 kB / 428.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.3265, allocations: 115.8 kB / 428.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.385e-05/0.3266, allocations: 46.56 kB / 428.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.3266, allocations: 12.05 kB / 428.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001761/0.3268, allocations: 79.38 kB / 428.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.3268, allocations: 0 / 428.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004167/0.3272, allocations: 161.4 kB / 428.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.3273, allocations: 158.2 kB / 428.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.3277, allocations: 329.8 kB / 429.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3277, allocations: 25.7 kB / 429.1 MB, free: 7.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.941e-05/0.3278, allocations: 124.1 kB / 429.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.675e-05/0.3278, allocations: 23.83 kB / 429.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.198e-05/0.3279, allocations: 37.91 kB / 429.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.328, allocations: 330.8 kB / 429.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.067e-05/0.3281, allocations: 23.98 kB / 429.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.3282, allocations: 86.78 kB / 429.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.3284, allocations: 88.16 kB / 429.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3284, allocations: 0 / 429.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002304/0.3286, allocations: 117.5 kB / 429.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3286, allocations: 4.125 kB / 430 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3287, allocations: 8 kB / 430 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.3287, allocations: 0 / 430 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.3288, allocations: 23.92 kB / 430 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3288, allocations: 0 / 430 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.533e-05/0.3289, allocations: 23.81 kB / 430 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.3289, allocations: 4 kB / 430 MB, free: 6.895 MB / 334.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,table.y,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.0001545/0.329, allocations: 149.8 kB / 430.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.462e-05/0.3291, allocations: 73.83 kB / 430.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002843/0.3294, allocations: 119.3 kB / 430.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.3294, allocations: 4 kB / 430.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.3294, allocations: 0 / 430.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3294, allocations: 3.938 kB / 430.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.3297, allocations: 208.6 kB / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3297, allocations: 0 / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.188e-05/0.3297, allocations: 12 kB / 430.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3297, allocations: 0 / 430.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3297, allocations: 7.984 kB / 430.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3297, allocations: 4.031 kB / 430.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3297, allocations: 0 / 430.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/0.33, allocations: 170.5 kB / 430.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.065e-05/0.3301, allocations: 35.78 kB / 430.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.3301, allocations: 4 kB / 430.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.007e-05/0.3302, allocations: 8 kB / 430.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.985e-05/0.3303, allocations: 11.92 kB / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.3303, allocations: 11.98 kB / 430.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.3305, allocations: 237.2 kB / 431 MB, free: 5.762 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3305, allocations: 0 / 431 MB, free: 5.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002722/0.3308, allocations: 32.09 kB / 431.1 MB, free: 5.73 MB / 334.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,table.y,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.002034/0.3328, allocations: 1.025 MB / 432.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002429/0.3331, allocations: 75.84 kB / 432.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3331, allocations: 0 / 432.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.724e-05/0.3332, allocations: 28.17 kB / 432.2 MB, free: 4.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004038/0.3336, allocations: 66.48 kB / 432.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.3363, allocations: 2.191 MB / 434.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.3366, allocations: 0.7437 MB / 435.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.728e-05/0.3367, allocations: 29.7 kB / 435.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3368, allocations: 55.42 kB / 435.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3368, allocations: 0 / 435.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03645/0.3733, allocations: 5.452 MB / 440.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.34, allocations: 6.922 kB / 440.7 MB, free: 12.14 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79104e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.975987731002533]