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.001319/0.001319, allocations: 109.5 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.001407/0.001407, allocations: 187.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.423/1.423, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.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 0.001826/0.001826, allocations: 51.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.247, allocations: 52.2 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003492/0.2505, allocations: 1.927 MB / 424.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.2525, allocations: 1.177 MB / 425.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2526, allocations: 7.938 kB / 425.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.2529, allocations: 63.67 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000256/0.2531, allocations: 99.58 kB / 425.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007087/0.2538, allocations: 257.9 kB / 426.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002493/0.2541, allocations: 175.5 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.2542, allocations: 29.73 kB / 426.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.2543, allocations: 79.62 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.2544, allocations: 87.67 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.2545, allocations: 8 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.2546, allocations: 75.94 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.759e-05/0.2547, allocations: 55.7 kB / 426.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.624e-05/0.2548, allocations: 79.48 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003508/0.2552, allocations: 243.4 kB / 427 MB, free: 10.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2552, allocations: 0 / 427 MB, free: 10.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2552, allocations: 0 / 427 MB, free: 10.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2552, allocations: 0 / 427 MB, free: 10.24 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007548/0.2559, allocations: 490.4 kB / 427.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.256, allocations: 8.031 kB / 427.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.162e-05/0.256, allocations: 38.75 kB / 427.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.215e-05/0.2561, allocations: 28.75 kB / 427.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/0.2565, allocations: 221.5 kB / 427.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.2565, allocations: 8.375 kB / 427.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.2565, allocations: 7.938 kB / 427.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003839/0.2569, allocations: 183.8 kB / 427.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2569, allocations: 4 kB / 427.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.257, allocations: 4 kB / 427.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.257, allocations: 3.938 kB / 427.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.2571, allocations: 39.92 kB / 428 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006064/0.2577, allocations: 449.6 kB / 428.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.258, allocations: 134.5 kB / 428.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.2581, allocations: 63.41 kB / 428.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.2581, allocations: 4 kB / 428.6 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.2583, allocations: 97.02 kB / 428.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.2583, allocations: 0 / 428.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.000429/0.2587, allocations: 173.7 kB / 428.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.2589, allocations: 187.9 kB / 429.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003694/0.2592, allocations: 337.8 kB / 429.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.724e-05/0.2593, allocations: 25.7 kB / 429.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.2594, allocations: 128.4 kB / 429.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.2594, allocations: 27.89 kB / 429.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.068e-05/0.2595, allocations: 37.67 kB / 429.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.2597, allocations: 334.8 kB / 429.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.994e-05/0.2598, allocations: 27.98 kB / 430 MB, free: 6.945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.2599, allocations: 99.64 kB / 430.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.2601, allocations: 93.08 kB / 430.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2601, allocations: 0 / 430.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002708/0.2604, allocations: 137.4 kB / 430.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2604, allocations: 16.09 kB / 430.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2604, allocations: 0 / 430.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.2604, allocations: 4 kB / 430.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.2605, allocations: 27.92 kB / 430.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.2605, allocations: 4 kB / 430.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.929e-05/0.2606, allocations: 7.938 kB / 430.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.2606, allocations: 4.047 kB / 430.4 MB, free: 6.508 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001657/0.2608, allocations: 157.8 kB / 430.5 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.2609, allocations: 73.5 kB / 430.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.2612, allocations: 123.6 kB / 430.7 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2612, allocations: 4.062 kB / 430.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.2612, allocations: 4 kB / 430.7 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.2612, allocations: 3.938 kB / 430.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.2614, allocations: 220.5 kB / 430.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2614, allocations: 0 / 430.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.388e-05/0.2615, allocations: 16 kB / 430.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2615, allocations: 0 / 430.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.2615, allocations: 12.05 kB / 431 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2615, allocations: 0 / 431 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2615, allocations: 4 kB / 431 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.2618, allocations: 187.3 kB / 431.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-05/0.2619, allocations: 43.83 kB / 431.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.2619, allocations: 4 kB / 431.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.032e-05/0.262, allocations: 4 kB / 431.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.262, allocations: 15.92 kB / 431.2 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.2621, allocations: 4 kB / 431.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000252/0.2623, allocations: 245.2 kB / 431.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2623, allocations: 0 / 431.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.2626, allocations: 35.94 kB / 431.5 MB, free: 5.277 MB / 334.1 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 (11): * Single equations (assignments): 9 * 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.002032/0.2646, allocations: 1.033 MB / 432.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.2649, allocations: 83.84 kB / 432.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2649, allocations: 0 / 432.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.265, allocations: 35.97 kB / 432.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.2654, allocations: 71.88 kB / 432.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.2681, allocations: 2.272 MB / 435 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.2685, allocations: 0.7359 MB / 435.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.797e-05/0.2685, allocations: 33.72 kB / 435.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.2687, allocations: 63.39 kB / 435.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2687, allocations: 0 / 435.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/0.3014, allocations: 5.604 MB / 441.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.44, allocations: 3.375 kB / 441.4 MB, free: 11.4 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/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: 14.007428886001435]