Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.0008125/0.0008125, allocations: 76.08 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.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.000774/0.000774, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9006/0.9006, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.535e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00272/0.002745, allocations: 1.864 MB / 320.3 MB, free: 4.48 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.004343, allocations: 1.09 MB / 321.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.004476, allocations: 7.938 kB / 321.4 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003508/0.004827, allocations: 63.61 kB / 321.5 MB, free: 3.312 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002687/0.005096, allocations: 103.5 kB / 321.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006274/0.005723, allocations: 272.6 kB / 321.8 MB, free: 2.949 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.005939, allocations: 179.5 kB / 322 MB, free: 2.773 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.006055, allocations: 29.77 kB / 322 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.006178, allocations: 103.7 kB / 322.1 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.006281, allocations: 75.8 kB / 322.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.006303, allocations: 8 kB / 322.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001659/0.006469, allocations: 71.88 kB / 322.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002759/0.006745, allocations: 51.78 kB / 322.3 MB, free: 2.438 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.273e-05/0.006818, allocations: 43.84 kB / 322.4 MB, free: 2.395 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003761/0.007194, allocations: 247.1 kB / 322.6 MB, free: 2.152 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/0.007202, allocations: 4 kB / 322.6 MB, free: 2.148 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.007205, allocations: 0 / 322.6 MB, free: 2.148 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.007213, allocations: 0 / 322.6 MB, free: 2.148 MB / 282.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.0007945/0.008007, allocations: 478.5 kB / 323.1 MB, free: 1.645 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.00807, allocations: 12.92 kB / 323.1 MB, free: 1.633 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.685e-05/0.008116, allocations: 42.69 kB / 323.1 MB, free: 1.582 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.236e-05/0.008179, allocations: 20.8 kB / 323.2 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004126/0.008591, allocations: 224.8 kB / 323.4 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.008613, allocations: 16.3 kB / 323.4 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.008628, allocations: 4.375 kB / 323.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.00901, allocations: 201.5 kB / 323.6 MB, free: 1.062 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.009022, allocations: 4 kB / 323.6 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.009038, allocations: 4 kB / 323.6 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.009044, allocations: 0 / 323.6 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.78e-05/0.009141, allocations: 43.91 kB / 323.7 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005337/0.009675, allocations: 417.8 kB / 324.1 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.009863, allocations: 142.5 kB / 324.2 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.369e-05/0.009926, allocations: 59.41 kB / 324.3 MB, free: 312 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.009951, allocations: 4 kB / 324.3 MB, free: 308 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.01011, allocations: 105.1 kB / 324.4 MB, free: 184 kB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.01011, allocations: 3.938 kB / 324.4 MB, free: 180 kB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003112/0.01042, allocations: 169.4 kB / 324.5 MB, free: 4 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.01052, allocations: 170.1 kB / 324.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/0.01078, allocations: 326.2 kB / 325 MB, free: 15.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.0108, allocations: 33.7 kB / 325.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.966e-05/0.01088, allocations: 124.4 kB / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/0.0109, allocations: 27.78 kB / 325.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.01095, allocations: 33.64 kB / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.01105, allocations: 330.8 kB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.257e-05/0.01111, allocations: 23.98 kB / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.404e-05/0.01119, allocations: 119.7 kB / 325.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.677e-05/0.01129, allocations: 70.5 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.01129, allocations: 4.031 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000175/0.01146, allocations: 117.7 kB / 325.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.01148, allocations: 4 kB / 325.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.01148, allocations: 64 / 325.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.0115, allocations: 8 kB / 325.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.371e-05/0.01158, allocations: 19.92 kB / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.01159, allocations: 0 / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.53e-05/0.01163, allocations: 8 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.01164, allocations: 3.984 kB / 325.9 MB, free: 14.5 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.0001017/0.01174, allocations: 158.5 kB / 326.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.837e-05/0.01181, allocations: 77.48 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/0.012, allocations: 119.4 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.01201, allocations: 7.984 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.01201, allocations: 0 / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.01202, allocations: 0 / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.01218, allocations: 212.5 kB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.01218, allocations: 4 kB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.883e-05/0.01223, allocations: 15.94 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.01224, allocations: 8.047 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.01225, allocations: 11.94 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.01225, allocations: 0 / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.01225, allocations: 4 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.01246, allocations: 183.5 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.785e-05/0.01252, allocations: 43.83 kB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.01255, allocations: 0 / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.808e-05/0.01258, allocations: 7.938 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.01264, allocations: 11.98 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.01265, allocations: 11.98 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001642/0.01282, allocations: 245.2 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01282, allocations: 0 / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002035/0.01302, allocations: 31.94 kB / 327.1 MB, free: 13.27 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.001093/0.01412, allocations: 1.079 MB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001688/0.01428, allocations: 75.84 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01429, allocations: 4.125 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.687e-05/0.01434, allocations: 39.97 kB / 328.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.01464, allocations: 73.14 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.01641, allocations: 2.207 MB / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.608e-05/0.01651, allocations: 136.2 kB / 330.7 MB, free: 9.688 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.094e-05/0.01658, allocations: 25.62 kB / 330.7 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.053e-05/0.01666, allocations: 64.47 kB / 330.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01666, allocations: 0 / 330.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.03745, allocations: 6.242 MB / 337 MB, free: 3.426 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.938/6.976, allocations: 3 kB / 337 MB, free: 3.426 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! Error: Could not read variable hold1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv. Warning: Get data of variable hold1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.792830670252442]