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.00133/0.00133, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001503/0.001503, allocations: 215.1 kB / 23.72 MB, free: 4.531 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.395/1.395, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001494/0.001494, allocations: 55.91 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2485, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002995/0.2515, allocations: 1.651 MB / 432.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.2525, allocations: 0.5376 MB / 433.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.711e-05/0.2526, allocations: 7.938 kB / 433.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.484e-05/0.2526, allocations: 7.922 kB / 433.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.2528, allocations: 11.88 kB / 433.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.2531, allocations: 71.69 kB / 433.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.2532, allocations: 71.75 kB / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2534, allocations: 16.23 kB / 433.5 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.2535, allocations: 35.8 kB / 433.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.246e-05/0.2536, allocations: 31.83 kB / 433.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.2536, allocations: 12 kB / 433.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.574e-05/0.2536, allocations: 16 kB / 433.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.168e-05/0.2537, allocations: 19.86 kB / 433.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.312e-05/0.2537, allocations: 31.8 kB / 433.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.2539, allocations: 85.2 kB / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2539, allocations: 0 / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2539, allocations: 0 / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.2539, allocations: 4 kB / 433.7 MB, free: 4.051 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.0005356/0.2545, allocations: 321.9 kB / 434 MB, free: 3.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.2545, allocations: 8.031 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.2546, allocations: 42.75 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.2547, allocations: 24.83 kB / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.255, allocations: 142.9 kB / 434.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.255, allocations: 4.375 kB / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.255, allocations: 11.94 kB / 434.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.2554, allocations: 140.9 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2554, allocations: 0 / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.2554, allocations: 8 kB / 434.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.2554, allocations: 0 / 434.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.2555, allocations: 31.91 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004647/0.256, allocations: 260.8 kB / 434.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.2562, allocations: 81.12 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.868e-05/0.2563, allocations: 33.8 kB / 434.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.2563, allocations: 8 kB / 434.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001321/0.2564, allocations: 63.34 kB / 434.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.2564, allocations: 3.938 kB / 434.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003209/0.2567, allocations: 117.5 kB / 435 MB, free: 2.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.2568, allocations: 81.11 kB / 435 MB, free: 2.508 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.2569, allocations: 160.6 kB / 435.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.257, allocations: 29.7 kB / 435.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.672e-05/0.257, allocations: 88.14 kB / 435.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.2571, allocations: 15.89 kB / 435.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.2571, allocations: 33.67 kB / 435.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.2572, allocations: 322.8 kB / 435.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.365e-05/0.2573, allocations: 19.98 kB / 435.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.584e-05/0.2574, allocations: 57.39 kB / 435.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.2576, allocations: 93.06 kB / 435.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2576, allocations: 4 kB / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000204/0.2578, allocations: 113.5 kB / 436 MB, free: 1.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2578, allocations: 14.75 kB / 436 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2578, allocations: 0 / 436 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2578, allocations: 4 kB / 436 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.927e-05/0.2579, allocations: 19.86 kB / 436 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.2579, allocations: 4 kB / 436 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.238e-05/0.2579, allocations: 8.094 kB / 436 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.258, allocations: 8.188 kB / 436 MB, free: 1.461 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.0001541/0.2581, allocations: 129.8 kB / 436.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.966e-05/0.2582, allocations: 53.58 kB / 436.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.2582, allocations: 16.41 kB / 436.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.2582, allocations: 7.938 kB / 436.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2582, allocations: 0 / 436.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.2582, allocations: 0 / 436.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003816/0.2586, allocations: 313.6 kB / 436.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2586, allocations: 0 / 436.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.954e-05/0.2587, allocations: 23.86 kB / 436.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2587, allocations: 0 / 436.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.2587, allocations: 4 kB / 436.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2587, allocations: 0 / 436.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2587, allocations: 0 / 436.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.2589, allocations: 204.4 kB / 436.8 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.87e-05/0.259, allocations: 23.88 kB / 436.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.259, allocations: 4 kB / 436.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.694e-05/0.2591, allocations: 0 / 436.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.2591, allocations: 7.984 kB / 436.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.2591, allocations: 12 kB / 436.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.278e-05/0.2592, allocations: 105 kB / 436.9 MB, free: 500 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2592, allocations: 0 / 436.9 MB, free: 500 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.2595, allocations: 23.94 kB / 436.9 MB, free: 476 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.0006542/0.2601, allocations: 0.7679 MB / 437.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001932/0.2603, allocations: 63.91 kB / 437.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2603, allocations: 384 / 437.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.03e-05/0.2604, allocations: 23.98 kB / 437.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.2607, allocations: 31.94 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.2625, allocations: 1.546 MB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.916e-05/0.2626, allocations: 81 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.198e-05/0.2626, allocations: 16.59 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.741e-05/0.2627, allocations: 27.42 kB / 439.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2627, allocations: 0 / 439.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.2903, allocations: 2.636 MB / 442.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.23, allocations: 4 kB / 442.1 MB, free: 11.24 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.761454099992989]