Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001338/0.001338, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 214.3 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002255/0.002255, allocations: 63.91 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3569, allocations: 53.41 MB / 431.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003833/0.3607, allocations: 1.9 MB / 433 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002524/0.3632, allocations: 1.168 MB / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.3634, allocations: 7.938 kB / 434.2 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000659/0.364, allocations: 151.5 kB / 434.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004223/0.3645, allocations: 163.4 kB / 434.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004564/0.3649, allocations: 175.5 kB / 434.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.3652, allocations: 199.4 kB / 434.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.3653, allocations: 25.59 kB / 434.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.3654, allocations: 79.69 kB / 435 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.3656, allocations: 83.55 kB / 435.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.3656, allocations: 8 kB / 435.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.3658, allocations: 59.97 kB / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.16e-05/0.3659, allocations: 47.83 kB / 435.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.968e-05/0.3659, allocations: 55.61 kB / 435.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.3663, allocations: 224.9 kB / 435.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3663, allocations: 0 / 435.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3663, allocations: 4 kB / 435.5 MB, free: 2.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3663, allocations: 0 / 435.5 MB, free: 2.094 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.0008593/0.3672, allocations: 458.6 kB / 435.9 MB, free: 1.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3672, allocations: 15.92 kB / 435.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.284e-05/0.3673, allocations: 42.73 kB / 436 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.872e-05/0.3673, allocations: 20.8 kB / 436 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.3677, allocations: 209.2 kB / 436.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3677, allocations: 4.375 kB / 436.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.3677, allocations: 12.38 kB / 436.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.3681, allocations: 162.8 kB / 436.4 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3681, allocations: 4 kB / 436.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.3681, allocations: 0 / 436.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3681, allocations: 0 / 436.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.3682, allocations: 43.91 kB / 436.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005596/0.3688, allocations: 409.7 kB / 436.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/0.369, allocations: 142.5 kB / 436.9 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.337e-05/0.3691, allocations: 47.42 kB / 437 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.3691, allocations: 8 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.3693, allocations: 97.02 kB / 437.1 MB, free: 248 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.3693, allocations: 0 / 437.1 MB, free: 248 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004002/0.3697, allocations: 165.5 kB / 437.3 MB, free: 76 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.3698, allocations: 136.5 kB / 437.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.3701, allocations: 281 kB / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.3701, allocations: 29.7 kB / 437.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.732e-05/0.3702, allocations: 120.4 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/0.3703, allocations: 23.95 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.224e-05/0.3703, allocations: 41.59 kB / 437.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3705, allocations: 330.8 kB / 438.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.568e-05/0.3706, allocations: 23.98 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.3707, allocations: 107.2 kB / 438.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.3708, allocations: 93.02 kB / 438.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3708, allocations: 0 / 438.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002334/0.3711, allocations: 129.8 kB / 438.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3711, allocations: 8.188 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3711, allocations: 4 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3711, allocations: 0 / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.163e-05/0.3712, allocations: 19.98 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3712, allocations: 0 / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.709e-05/0.3713, allocations: 15.89 kB / 438.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.3713, allocations: 8 kB / 438.6 MB, free: 14.61 MB / 350.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.0001607/0.3715, allocations: 146.6 kB / 438.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.586e-05/0.3715, allocations: 73.52 kB / 438.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002469/0.3718, allocations: 115.4 kB / 438.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.3718, allocations: 4 kB / 438.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3718, allocations: 0 / 438.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3718, allocations: 0 / 438.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.372, allocations: 200.6 kB / 439.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.372, allocations: 0 / 439.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.495e-05/0.3721, allocations: 11.94 kB / 439.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.3721, allocations: 0 / 439.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.3721, allocations: 4 kB / 439.1 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.585e-06/0.3721, allocations: 3.984 kB / 439.1 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3721, allocations: 4.031 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.3724, allocations: 183.4 kB / 439.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.823e-05/0.3725, allocations: 39.77 kB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.3725, allocations: 7.938 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.738e-05/0.3726, allocations: 8 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.3726, allocations: 7.984 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.3726, allocations: 4 kB / 439.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002273/0.3728, allocations: 208.4 kB / 439.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3728, allocations: 0 / 439.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.3731, allocations: 31.98 kB / 439.6 MB, free: 13.49 MB / 350.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 (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.002126/0.3752, allocations: 1.056 MB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.3755, allocations: 79.88 kB / 440.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3755, allocations: 0 / 440.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.908e-05/0.3755, allocations: 27.94 kB / 440.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.376, allocations: 81.94 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.3785, allocations: 2.04 MB / 442.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.3786, allocations: 127.9 kB / 443 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.631e-05/0.3787, allocations: 25.62 kB / 443.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3788, allocations: 55.41 kB / 443.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3788, allocations: 0 / 443.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03355/0.4124, allocations: 5.545 MB / 448.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.42, allocations: 0 / 448.7 MB, free: 4.473 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv failed! Error: Could not read variable hold1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv. Warning: Get data of variable hold1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.994103295262903]