Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.001798/0.001798, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001877/0.001877, allocations: 191.7 kB / 23.71 MB, free: 4.406 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.407/1.407, allocations: 225.7 MB / 252.5 MB, free: 12.81 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.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 43.92 kB / 370.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2452, allocations: 52.18 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.00293/0.2481, allocations: 1.634 MB / 424.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009348/0.249, allocations: 486.8 kB / 424.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.361e-05/0.2491, allocations: 7.938 kB / 424.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.239e-05/0.2492, allocations: 3.938 kB / 424.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.2493, allocations: 15.86 kB / 424.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.2496, allocations: 55.77 kB / 424.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.2497, allocations: 67.77 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.2498, allocations: 24.22 kB / 424.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.42e-05/0.2499, allocations: 27.92 kB / 424.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.105e-05/0.25, allocations: 35.77 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.25, allocations: 4 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.505e-05/0.25, allocations: 4 kB / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.656e-05/0.2501, allocations: 23.92 kB / 425 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.035e-05/0.2501, allocations: 19.81 kB / 425 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.2503, allocations: 81.27 kB / 425.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2503, allocations: 4 kB / 425.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2503, allocations: 0 / 425.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2503, allocations: 4 kB / 425.1 MB, free: 11.93 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004861/0.2508, allocations: 325.8 kB / 425.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2508, allocations: 8.031 kB / 425.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.093e-05/0.2508, allocations: 38.75 kB / 425.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.289e-05/0.2509, allocations: 12.88 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.2511, allocations: 142.3 kB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.2511, allocations: 4.375 kB / 425.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.2511, allocations: 8.375 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.2514, allocations: 144.6 kB / 425.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.2515, allocations: 4 kB / 425.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.2515, allocations: 4 kB / 425.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2515, allocations: 0 / 425.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.2516, allocations: 35.86 kB / 425.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004487/0.252, allocations: 272.7 kB / 426 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.2522, allocations: 77.14 kB / 426.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.706e-05/0.2523, allocations: 33.8 kB / 426.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.2523, allocations: 7.984 kB / 426.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001219/0.2525, allocations: 55.41 kB / 426.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 3.487e-06/0.2525, allocations: 3.984 kB / 426.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003095/0.2528, allocations: 121.7 kB / 426.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/0.2528, allocations: 88.97 kB / 426.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.253, allocations: 144.4 kB / 426.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.253, allocations: 33.7 kB / 426.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.2531, allocations: 96.06 kB / 426.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.2531, allocations: 15.91 kB / 426.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.867e-05/0.2531, allocations: 29.7 kB / 426.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.2533, allocations: 322.8 kB / 427 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.663e-05/0.2533, allocations: 24.06 kB / 427.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.971e-05/0.2534, allocations: 61.12 kB / 427.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.2536, allocations: 85.08 kB / 427.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2536, allocations: 0 / 427.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002316/0.2538, allocations: 113.5 kB / 427.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2538, allocations: 7.984 kB / 427.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.2538, allocations: 4 kB / 427.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.2538, allocations: 0 / 427.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.58e-05/0.2539, allocations: 20.09 kB / 427.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2539, allocations: 0 / 427.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.57e-05/0.254, allocations: 7.984 kB / 427.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.254, allocations: 4 kB / 427.4 MB, free: 9.367 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: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001213/0.2541, allocations: 129.7 kB / 427.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.887e-05/0.2542, allocations: 57.59 kB / 427.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.725e-05/0.2542, allocations: 12.41 kB / 427.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2542, allocations: 0 / 427.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2542, allocations: 0 / 427.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2543, allocations: 7.984 kB / 427.6 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003997/0.2547, allocations: 309.6 kB / 427.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.2547, allocations: 4 kB / 427.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.525e-05/0.2547, allocations: 7.984 kB / 427.9 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2547, allocations: 4 kB / 427.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.2547, allocations: 3.938 kB / 427.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.2547, allocations: 8.062 kB / 427.9 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2547, allocations: 0 / 427.9 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.255, allocations: 208.2 kB / 428.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.021e-05/0.255, allocations: 23.83 kB / 428.1 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.2551, allocations: 4 kB / 428.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.496e-05/0.2551, allocations: 11.94 kB / 428.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.571e-05/0.2552, allocations: 3.984 kB / 428.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.2552, allocations: 4 kB / 428.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.08e-05/0.2553, allocations: 111.2 kB / 428.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2553, allocations: 4 kB / 428.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.2555, allocations: 8 kB / 428.3 MB, free: 8.375 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007372/0.2563, allocations: 0.772 MB / 429 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001972/0.2565, allocations: 64.03 kB / 429.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2565, allocations: 0 / 429.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.837e-05/0.2565, allocations: 16 kB / 429.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.2569, allocations: 37.02 kB / 429.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.2586, allocations: 1.554 MB / 430.7 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.722e-05/0.2587, allocations: 97.17 kB / 430.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.341e-05/0.2587, allocations: 8.656 kB / 430.8 MB, free: 5.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.097e-05/0.2588, allocations: 19.81 kB / 430.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2588, allocations: 0 / 430.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.2884, allocations: 2.577 MB / 433.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.42, allocations: 4.062 kB / 433.4 MB, free: 3.203 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,triggeredSampler.y Variables in the result:time,clockToTrigger.u,sample1.y,triggeredSampler.u,triggeredSampler.y,sine.amplitude [Calling sys.exit(0), Time elapsed: 14.007425544783473]