Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001527/0.001526, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00183/0.00183, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3694, allocations: 50.53 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003344/0.3729, allocations: 1.654 MB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.3741, allocations: 0.5726 MB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3742, allocations: 7.938 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.603e-05/0.3743, allocations: 3.938 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.3745, allocations: 11.86 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003841/0.3749, allocations: 71.75 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.375, allocations: 59.83 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3752, allocations: 24.22 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.3754, allocations: 35.86 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.122e-05/0.3754, allocations: 35.83 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.3755, allocations: 4 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.913e-05/0.3755, allocations: 15.94 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.3756, allocations: 15.92 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.995e-05/0.3756, allocations: 35.75 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001872/0.3758, allocations: 90.47 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3758, allocations: 0 / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3759, allocations: 4 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3759, allocations: 0 / 411.4 MB, free: 14.91 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.0006184/0.3765, allocations: 399 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3765, allocations: 8.031 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.3766, allocations: 42.73 kB / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.3768, allocations: 24.83 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.3771, allocations: 204.1 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.3771, allocations: 8.375 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.3771, allocations: 7.938 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.3775, allocations: 144.9 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3775, allocations: 0 / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3775, allocations: 0 / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.3775, allocations: 4 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.3777, allocations: 31.97 kB / 412.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005516/0.3782, allocations: 313.5 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.3785, allocations: 158.2 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.329e-05/0.3786, allocations: 41.8 kB / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.3786, allocations: 4 kB / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001321/0.3788, allocations: 67.34 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.3788, allocations: 0 / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003322/0.3791, allocations: 113.5 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.3792, allocations: 85.11 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.3793, allocations: 153.7 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.3794, allocations: 25.7 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.3794, allocations: 96.12 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/0.3795, allocations: 11.91 kB / 413.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.143e-05/0.3795, allocations: 33.66 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3797, allocations: 318.8 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.066e-05/0.3798, allocations: 23.98 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.976e-05/0.3799, allocations: 61.14 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.3801, allocations: 89.31 kB / 413.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3801, allocations: 0 / 413.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002192/0.3803, allocations: 113.5 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3803, allocations: 8 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.3803, allocations: 0 / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3804, allocations: 160 / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.715e-05/0.3805, allocations: 31.8 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3805, allocations: 0 / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.992e-05/0.3806, allocations: 7.938 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.3806, allocations: 8 kB / 414 MB, free: 12 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.0001218/0.3807, allocations: 125.8 kB / 414.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-05/0.3808, allocations: 61.58 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.778e-05/0.3808, allocations: 12.31 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3809, allocations: 7.875 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3809, allocations: 4 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3809, allocations: 4 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.3813, allocations: 338.6 kB / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3813, allocations: 11.92 kB / 414.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.405e-05/0.3814, allocations: 11.94 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3814, allocations: 0 / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.3814, allocations: 4 kB / 414.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3814, allocations: 0 / 414.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.3815, allocations: 7.984 kB / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/0.3817, allocations: 196.5 kB / 414.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.064e-05/0.3818, allocations: 101.1 kB / 414.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.3819, allocations: 8 kB / 414.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.651e-05/0.3819, allocations: 7.984 kB / 414.8 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.382, allocations: 4 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.382, allocations: 0 / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.171e-05/0.3821, allocations: 118.8 kB / 415 MB, free: 10.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3821, allocations: 0 / 415 MB, free: 10.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.3824, allocations: 19.95 kB / 415 MB, free: 10.86 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.000713/0.3831, allocations: 0.7681 MB / 415.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.3833, allocations: 75.78 kB / 415.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3833, allocations: 0 / 415.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.449e-05/0.3834, allocations: 19.98 kB / 415.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3838, allocations: 34.17 kB / 415.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.3855, allocations: 1.547 MB / 417.4 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.3858, allocations: 0.7041 MB / 418.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.888e-05/0.3859, allocations: 4.438 kB / 418.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.328e-05/0.3859, allocations: 27.42 kB / 418.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3859, allocations: 0 / 418.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.4079, allocations: 2.032 MB / 420.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/8.253, allocations: 10.67 kB / 420.2 MB, free: 5.613 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,triggeredSampler.y Variables in the result:time,clockToTrigger.u,sample1.y,triggeredSampler.u,triggeredSampler.y,sine.amplitude