Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001554/0.001554, 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 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 218.2 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 47.92 kB / 377.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2523, allocations: 53.36 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003378/0.2556, allocations: 1.657 MB / 432.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2569, allocations: 0.5453 MB / 433.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.257, allocations: 0 / 433.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.22e-05/0.257, allocations: 15.88 kB / 433.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.2572, allocations: 11.86 kB / 433.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.2576, allocations: 67.8 kB / 433.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.2577, allocations: 63.78 kB / 433.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2578, allocations: 20.22 kB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.2579, allocations: 35.78 kB / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.533e-05/0.258, allocations: 23.86 kB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.258, allocations: 4 kB / 433.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.848e-05/0.2581, allocations: 16 kB / 433.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.18e-05/0.2581, allocations: 23.92 kB / 433.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.105e-05/0.2582, allocations: 27.8 kB / 433.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.2584, allocations: 89.25 kB / 433.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.2584, allocations: 0 / 433.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2584, allocations: 0 / 433.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2584, allocations: 0 / 433.7 MB, free: 4.016 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.0005715/0.2589, allocations: 329.8 kB / 434 MB, free: 3.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.259, allocations: 8.031 kB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.159e-05/0.259, allocations: 38.75 kB / 434 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.2592, allocations: 20.83 kB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.2595, allocations: 149 kB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.2595, allocations: 4.375 kB / 434.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.2595, allocations: 11.94 kB / 434.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.2599, allocations: 140.9 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.2599, allocations: 3.984 kB / 434.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.2599, allocations: 8 kB / 434.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2599, allocations: 4 kB / 434.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001144/0.26, allocations: 27.98 kB / 434.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005437/0.2606, allocations: 264.7 kB / 434.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002323/0.2608, allocations: 69.2 kB / 434.7 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.418e-05/0.2609, allocations: 37.8 kB / 434.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.2609, allocations: 0 / 434.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.2611, allocations: 75.28 kB / 434.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.2611, allocations: 4 kB / 434.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003522/0.2614, allocations: 113.7 kB / 435 MB, free: 2.566 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.714e-05/0.2615, allocations: 85.05 kB / 435 MB, free: 2.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.2617, allocations: 156.9 kB / 435.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.2617, allocations: 25.7 kB / 435.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.007e-05/0.2618, allocations: 96.12 kB / 435.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.2618, allocations: 11.91 kB / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.026e-05/0.2619, allocations: 33.66 kB / 435.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.262, allocations: 322.8 kB / 435.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.691e-05/0.2621, allocations: 27.98 kB / 435.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.2622, allocations: 61.38 kB / 435.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.2624, allocations: 89.02 kB / 435.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2624, allocations: 0 / 435.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002418/0.2626, allocations: 121.5 kB / 436 MB, free: 1.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.2626, allocations: 6.812 kB / 436 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.2626, allocations: 7.984 kB / 436 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.2627, allocations: 0 / 436 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.856e-05/0.2628, allocations: 15.94 kB / 436 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.2628, allocations: 0 / 436 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.852e-05/0.2628, allocations: 19.86 kB / 436 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.2628, allocations: 4 kB / 436 MB, free: 1.414 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.0001276/0.263, allocations: 122 kB / 436.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.2631, allocations: 57.64 kB / 436.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.2631, allocations: 12.41 kB / 436.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.2631, allocations: 3.938 kB / 436.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2631, allocations: 0 / 436.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2631, allocations: 7.984 kB / 436.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.2635, allocations: 309.6 kB / 436.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.2635, allocations: 0 / 436.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.467e-05/0.2636, allocations: 15.92 kB / 436.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2636, allocations: 0 / 436.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.2636, allocations: 4 kB / 436.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.2636, allocations: 7.938 kB / 436.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2636, allocations: 0 / 436.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.2639, allocations: 200.4 kB / 436.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.819e-05/0.264, allocations: 27.88 kB / 436.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.264, allocations: 4 kB / 436.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.513e-05/0.2641, allocations: 0 / 436.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.2641, allocations: 16.02 kB / 436.8 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.2641, allocations: 3.938 kB / 436.8 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.674e-05/0.2642, allocations: 111.2 kB / 436.9 MB, free: 452 kB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2642, allocations: 4 kB / 436.9 MB, free: 448 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002503/0.2644, allocations: 19.95 kB / 436.9 MB, free: 428 kB / 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.0006908/0.2651, allocations: 0.764 MB / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.2653, allocations: 63.91 kB / 437.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2653, allocations: 3.938 kB / 437.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.086e-05/0.2654, allocations: 15.98 kB / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.2657, allocations: 34.08 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.2676, allocations: 1.54 MB / 439.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.2677, allocations: 88.98 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.031e-05/0.2677, allocations: 8.438 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.2678, allocations: 31.36 kB / 439.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2678, allocations: 0 / 439.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03125/0.2991, allocations: 2.612 MB / 442.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.46, allocations: 0 / 442.1 MB, free: 11.23 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.008120064157993]