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.001516/0.001516, 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.001418/0.001418, allocations: 186.2 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.462/1.462, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.00158/0.00158, allocations: 43.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2667, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002999/0.2697, allocations: 1.665 MB / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.2708, allocations: 0.5065 MB / 424.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2709, allocations: 7.938 kB / 424.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.285e-05/0.2709, allocations: 3.938 kB / 424.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001574/0.2711, allocations: 19.86 kB / 424.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.2714, allocations: 59.06 kB / 424.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.2716, allocations: 67.78 kB / 425 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.2717, allocations: 20.22 kB / 425 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.743e-05/0.2718, allocations: 31.8 kB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.82e-05/0.2719, allocations: 35.83 kB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.2719, allocations: 4 kB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.38e-05/0.2719, allocations: 4 kB / 425.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.962e-05/0.272, allocations: 23.92 kB / 425.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.272, allocations: 31.75 kB / 425.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.2722, allocations: 80.06 kB / 425.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2722, allocations: 0 / 425.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2722, allocations: 0 / 425.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.2722, allocations: 0 / 425.2 MB, free: 12.05 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.0005176/0.2727, allocations: 321.8 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2727, allocations: 12.03 kB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.341e-05/0.2728, allocations: 34.75 kB / 425.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.2728, allocations: 12.89 kB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.2731, allocations: 158.2 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.2731, allocations: 8.375 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.2731, allocations: 4.375 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.2734, allocations: 141.1 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.2735, allocations: 4 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.2735, allocations: 0 / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2735, allocations: 4 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.2736, allocations: 31.92 kB / 425.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005295/0.2741, allocations: 276.7 kB / 426.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.2743, allocations: 81.12 kB / 426.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.368e-05/0.2744, allocations: 29.8 kB / 426.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.2744, allocations: 8 kB / 426.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000126/0.2746, allocations: 63.33 kB / 426.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 3.617e-06/0.2746, allocations: 7.984 kB / 426.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003126/0.2749, allocations: 109.6 kB / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.2749, allocations: 89.05 kB / 426.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.2751, allocations: 148.3 kB / 426.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.2751, allocations: 29.7 kB / 426.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.42e-05/0.2752, allocations: 92.08 kB / 426.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.2752, allocations: 15.89 kB / 426.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-05/0.2752, allocations: 29.72 kB / 426.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.2754, allocations: 326.8 kB / 427.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.077e-05/0.2755, allocations: 20.23 kB / 427.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.995e-05/0.2755, allocations: 57.14 kB / 427.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.2757, allocations: 93.06 kB / 427.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2757, allocations: 0 / 427.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00022/0.2759, allocations: 121.4 kB / 427.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2759, allocations: 7.438 kB / 427.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2759, allocations: 4 kB / 427.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.276, allocations: 0 / 427.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.165e-05/0.276, allocations: 15.98 kB / 427.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2761, allocations: 0 / 427.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.7e-05/0.2761, allocations: 8 kB / 427.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.2761, allocations: 4 kB / 427.5 MB, free: 9.477 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.0001136/0.2762, allocations: 135.6 kB / 427.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.707e-05/0.2763, allocations: 61.69 kB / 427.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.2763, allocations: 12.41 kB / 427.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2763, allocations: 0 / 427.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2764, allocations: 0 / 427.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2764, allocations: 0 / 427.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003828/0.2767, allocations: 317.5 kB / 428 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2767, allocations: 0 / 428 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.056e-05/0.2768, allocations: 15.92 kB / 428 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2768, allocations: 4 kB / 428 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.2768, allocations: 4 kB / 428 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.2768, allocations: 3.938 kB / 428 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2768, allocations: 128 / 428 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.2771, allocations: 204.3 kB / 428.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.2771, allocations: 27.89 kB / 428.3 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.2771, allocations: 4 kB / 428.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.49e-05/0.2772, allocations: 11.94 kB / 428.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.2773, allocations: 7.984 kB / 428.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.2773, allocations: 0 / 428.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.204e-05/0.2773, allocations: 111.3 kB / 428.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2773, allocations: 0 / 428.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000249/0.2776, allocations: 12 kB / 428.4 MB, free: 8.477 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.0006366/0.2782, allocations: 0.7681 MB / 429.2 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001958/0.2784, allocations: 59.91 kB / 429.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2784, allocations: 0 / 429.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.158e-05/0.2785, allocations: 23.92 kB / 429.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.2788, allocations: 32.33 kB / 429.3 MB, free: 7.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.2805, allocations: 1.558 MB / 430.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.2808, allocations: 0.7079 MB / 431.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.498e-05/0.2808, allocations: 4.672 kB / 431.6 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.363e-05/0.2809, allocations: 27.42 kB / 431.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2809, allocations: 0 / 431.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0275/0.3084, allocations: 2.152 MB / 433.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.2, allocations: 11.5 kB / 433.8 MB, free: 3.105 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.906311177001044]