Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.0009842/0.0009842, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009308/0.0009308, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8915/0.8915, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.431e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002683/0.002707, allocations: 1.898 MB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.004309, allocations: 1.239 MB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.004442, allocations: 7.938 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003369/0.004779, allocations: 67.59 kB / 327.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003869/0.005166, allocations: 135.4 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005935/0.005759, allocations: 246 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.005995, allocations: 195.4 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.006121, allocations: 13.81 kB / 328.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.006245, allocations: 103.7 kB / 328.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.006349, allocations: 79.77 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.00637, allocations: 12 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001432/0.006513, allocations: 75.81 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.385e-05/0.006587, allocations: 47.84 kB / 328.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.336e-05/0.00664, allocations: 47.78 kB / 328.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000315/0.006955, allocations: 251.1 kB / 329 MB, free: 11.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.006959, allocations: 4 kB / 329 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.00696, allocations: 4 kB / 329 MB, free: 11.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.006966, allocations: 0 / 329 MB, free: 11.53 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000593/0.007559, allocations: 481.4 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.007596, allocations: 8.031 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.159e-05/0.007628, allocations: 42.73 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.812e-05/0.007676, allocations: 28.75 kB / 329.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.007982, allocations: 236.7 kB / 329.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.007997, allocations: 12.38 kB / 329.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.008008, allocations: 4.375 kB / 329.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.008299, allocations: 197.6 kB / 330 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.008307, allocations: 3.938 kB / 330 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.008319, allocations: 3.984 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.008325, allocations: 4 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.206e-05/0.008407, allocations: 43.91 kB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004102/0.008818, allocations: 429.7 kB / 330.4 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.008993, allocations: 146.5 kB / 330.6 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.314e-05/0.009076, allocations: 55.42 kB / 330.6 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.009104, allocations: 4 kB / 330.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.009307, allocations: 109 kB / 330.7 MB, free: 9.539 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.472e-06/0.009309, allocations: 3.938 kB / 330.7 MB, free: 9.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003796/0.009688, allocations: 173.4 kB / 330.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.009771, allocations: 166.2 kB / 331.1 MB, free: 9.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003594/0.01013, allocations: 340.2 kB / 331.4 MB, free: 8.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.01015, allocations: 29.7 kB / 331.4 MB, free: 8.785 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.015e-05/0.01024, allocations: 132.3 kB / 331.6 MB, free: 8.648 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.01027, allocations: 19.89 kB / 331.6 MB, free: 8.629 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.01032, allocations: 29.72 kB / 331.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.01042, allocations: 334.8 kB / 331.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.182e-05/0.01049, allocations: 24.36 kB / 332 MB, free: 8.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.01059, allocations: 123.7 kB / 332.1 MB, free: 8.086 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.01071, allocations: 70.5 kB / 332.1 MB, free: 8.008 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.01072, allocations: 4 kB / 332.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002088/0.01092, allocations: 113.8 kB / 332.3 MB, free: 7.887 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.01094, allocations: 4 kB / 332.3 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.01095, allocations: 4 kB / 332.3 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.01097, allocations: 4 kB / 332.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.336e-05/0.01106, allocations: 20.08 kB / 332.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.01107, allocations: 3.938 kB / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.084e-05/0.01113, allocations: 7.938 kB / 332.3 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.01114, allocations: 8 kB / 332.3 MB, free: 7.836 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001244/0.01126, allocations: 149.8 kB / 332.5 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.066e-05/0.01135, allocations: 81.44 kB / 332.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/0.01158, allocations: 123.5 kB / 332.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.01159, allocations: 3.984 kB / 332.7 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.0116, allocations: 4.062 kB / 332.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.0116, allocations: 4 kB / 332.7 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.01175, allocations: 204.6 kB / 332.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01176, allocations: 0 / 332.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.099e-05/0.01181, allocations: 23.92 kB / 332.9 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.01181, allocations: 0 / 332.9 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.01183, allocations: 8 kB / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.01183, allocations: 0 / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.01183, allocations: 0 / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001673/0.012, allocations: 187.4 kB / 333.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.01206, allocations: 51.72 kB / 333.1 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.01208, allocations: 4.188 kB / 333.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.566e-05/0.01211, allocations: 11.98 kB / 333.2 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.01216, allocations: 15.86 kB / 333.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.01217, allocations: 4 kB / 333.2 MB, free: 6.875 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001553/0.01233, allocations: 251.1 kB / 333.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01233, allocations: 0 / 333.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001849/0.01251, allocations: 35.98 kB / 333.5 MB, free: 6.598 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,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 (12): * Single equations (assignments): 10 * 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.0009993/0.01351, allocations: 1.07 MB / 334.5 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.01367, allocations: 75.89 kB / 334.6 MB, free: 5.602 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01368, allocations: 4 kB / 334.6 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.01373, allocations: 39.86 kB / 334.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.01403, allocations: 77.22 kB / 334.7 MB, free: 5.488 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.01592, allocations: 2.243 MB / 337 MB, free: 3.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.052e-05/0.01601, allocations: 136.2 kB / 337.1 MB, free: 2.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.029e-05/0.01608, allocations: 29.47 kB / 337.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.178e-05/0.01616, allocations: 64.47 kB / 337.2 MB, free: 2.891 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01616, allocations: 4 kB / 337.2 MB, free: 2.887 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.03584, allocations: 6.346 MB / 343.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.989/7.025, allocations: 15.02 kB / 343.5 MB, free: 12.6 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! Error: Could not read variable hold1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv. Warning: Get data of variable hold1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.857957605272532]