Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001806/0.001806, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002365/0.002365, allocations: 209.6 kB / 23.73 MB, free: 4.387 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.773 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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 51.91 kB / 377.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2556, allocations: 53.36 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003309/0.2589, allocations: 1.87 MB / 432.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.261, allocations: 1.231 MB / 434.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.2611, allocations: 3.938 kB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.2614, allocations: 67.67 kB / 434.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003521/0.2618, allocations: 143.4 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005928/0.2624, allocations: 222.3 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.2626, allocations: 175.5 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.2627, allocations: 21.75 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.2628, allocations: 79.62 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.263, allocations: 79.67 kB / 435 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.263, allocations: 12 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.2632, allocations: 79.88 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.789e-05/0.2632, allocations: 47.83 kB / 435.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.734e-05/0.2633, allocations: 63.53 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.2637, allocations: 247.3 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2637, allocations: 0 / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2637, allocations: 0 / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2637, allocations: 0 / 435.4 MB, free: 2.301 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.0007144/0.2644, allocations: 474.5 kB / 435.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2644, allocations: 12.03 kB / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.2645, allocations: 38.73 kB / 435.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.121e-05/0.2645, allocations: 28.8 kB / 435.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.2649, allocations: 229.5 kB / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.2649, allocations: 8.375 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.265, allocations: 7.938 kB / 436.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.2653, allocations: 172.4 kB / 436.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.2653, allocations: 8 kB / 436.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.2653, allocations: 4 kB / 436.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2653, allocations: 0 / 436.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.2654, allocations: 39.91 kB / 436.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.2659, allocations: 337.5 kB / 436.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00025/0.2662, allocations: 131.8 kB / 436.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.657e-05/0.2663, allocations: 42.56 kB / 436.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.2663, allocations: 4 kB / 436.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.2665, allocations: 79.38 kB / 437 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.482e-06/0.2665, allocations: 4 kB / 437 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003865/0.2669, allocations: 161.4 kB / 437.1 MB, free: 360 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.267, allocations: 128.5 kB / 437.3 MB, free: 200 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.2674, allocations: 353.7 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.2674, allocations: 25.7 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.881e-05/0.2675, allocations: 136 kB / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.2675, allocations: 20.2 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.2676, allocations: 33.72 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2677, allocations: 334.8 kB / 438.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.709e-05/0.2678, allocations: 23.98 kB / 438.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.268, allocations: 141.4 kB / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.2681, allocations: 84.16 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2681, allocations: 0 / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002406/0.2683, allocations: 133.5 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.2684, allocations: 8 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2684, allocations: 0 / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2684, allocations: 0 / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.2685, allocations: 23.92 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2685, allocations: 4 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.325e-05/0.2686, allocations: 7.938 kB / 438.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.2686, allocations: 4 kB / 438.6 MB, free: 14.8 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,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.0001469/0.2687, allocations: 158.2 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.192e-05/0.2688, allocations: 73.44 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002693/0.2691, allocations: 131.3 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.2691, allocations: 4 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2691, allocations: 0 / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.2691, allocations: 7.938 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002063/0.2693, allocations: 192.7 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2693, allocations: 0 / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.948e-05/0.2694, allocations: 19.98 kB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2694, allocations: 4.062 kB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.2694, allocations: 4 kB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2694, allocations: 3.938 kB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2694, allocations: 0 / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002891/0.2697, allocations: 178.5 kB / 439.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.518e-05/0.2698, allocations: 39.83 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.2698, allocations: 4 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.322e-05/0.2699, allocations: 4 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.2699, allocations: 15.92 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.2699, allocations: 4.094 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.2702, allocations: 257.1 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2702, allocations: 0 / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.2704, allocations: 35.94 kB / 439.7 MB, free: 13.6 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,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 (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.002075/0.2725, allocations: 1.054 MB / 440.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002293/0.2728, allocations: 83.88 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2728, allocations: 0 / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.358e-05/0.2728, allocations: 36.17 kB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.2732, allocations: 67.47 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.2758, allocations: 2.238 MB / 443.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.2759, allocations: 136 kB / 443.3 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.206e-05/0.276, allocations: 25.62 kB / 443.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.2761, allocations: 59.41 kB / 443.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2761, allocations: 0 / 443.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.3079, allocations: 6.121 MB / 449.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.39, allocations: 12.27 kB / 449.5 MB, free: 3.879 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.056110686156899]