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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 108.8 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001455, allocations: 187.1 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 51.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2834, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002761/0.2862, allocations: 1.637 MB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008392/0.2871, allocations: 0.4998 MB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.923e-05/0.2872, allocations: 7.938 kB / 402.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.417e-05/0.2873, allocations: 3.938 kB / 402.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.2874, allocations: 19.81 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003032/0.2877, allocations: 51.81 kB / 402.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.2879, allocations: 67.78 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.288, allocations: 32.19 kB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.093e-05/0.2881, allocations: 31.86 kB / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.377e-05/0.2881, allocations: 23.86 kB / 402.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.2882, allocations: 8 kB / 402.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.303e-05/0.2882, allocations: 4 kB / 402.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.365e-05/0.2882, allocations: 23.91 kB / 402.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.471e-05/0.2883, allocations: 39.67 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.2885, allocations: 78.66 kB / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2885, allocations: 0 / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2885, allocations: 0 / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.2885, allocations: 0 / 402.8 MB, free: 6.266 MB / 318.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.0004973/0.289, allocations: 402.9 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.289, allocations: 8.031 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.899e-05/0.2891, allocations: 38.75 kB / 403.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.244e-05/0.2891, allocations: 8.891 kB / 403.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.2894, allocations: 208.1 kB / 403.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.2894, allocations: 4.375 kB / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.2894, allocations: 8.375 kB / 403.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000343/0.2898, allocations: 145.1 kB / 403.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2898, allocations: 0 / 403.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.2898, allocations: 4 kB / 403.6 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2898, allocations: 0 / 403.6 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.2899, allocations: 31.92 kB / 403.6 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.2904, allocations: 313.6 kB / 403.9 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.2907, allocations: 154.2 kB / 404.1 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.113e-05/0.2908, allocations: 41.8 kB / 404.1 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.2908, allocations: 3.984 kB / 404.1 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001212/0.2909, allocations: 55.41 kB / 404.2 MB, free: 4.648 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.2909, allocations: 0 / 404.2 MB, free: 4.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003113/0.2913, allocations: 117.5 kB / 404.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.889e-05/0.2914, allocations: 89.09 kB / 404.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.2915, allocations: 141.8 kB / 404.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.2915, allocations: 29.7 kB / 404.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.2916, allocations: 96.06 kB / 404.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.418e-05/0.2916, allocations: 23.91 kB / 404.7 MB, free: 4.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.835e-05/0.2917, allocations: 29.7 kB / 404.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.2918, allocations: 322.8 kB / 405 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.192e-05/0.2919, allocations: 16 kB / 405 MB, free: 3.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.37e-05/0.292, allocations: 69.06 kB / 405.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.2921, allocations: 89.33 kB / 405.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2921, allocations: 0 / 405.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002045/0.2923, allocations: 113.4 kB / 405.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2924, allocations: 7.984 kB / 405.3 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2924, allocations: 4 kB / 405.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2924, allocations: 192 / 405.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.302e-05/0.2925, allocations: 16.09 kB / 405.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.2925, allocations: 4 kB / 405.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.78e-05/0.2926, allocations: 11.98 kB / 405.3 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.2926, allocations: 7.984 kB / 405.3 MB, free: 3.383 MB / 318.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.0001104/0.2927, allocations: 127.1 kB / 405.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.88e-05/0.2928, allocations: 61.53 kB / 405.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.2928, allocations: 12.31 kB / 405.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2928, allocations: 0 / 405.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2928, allocations: 0 / 405.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.2928, allocations: 11.98 kB / 405.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003726/0.2932, allocations: 346.4 kB / 405.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2932, allocations: 0 / 405.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-05/0.2933, allocations: 8 kB / 405.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2933, allocations: 4 kB / 405.9 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.2933, allocations: 3.984 kB / 405.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.2933, allocations: 3.938 kB / 405.9 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2933, allocations: 0 / 405.9 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.2937, allocations: 204.3 kB / 406.1 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.863e-05/0.2938, allocations: 93 kB / 406.2 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.2938, allocations: 7.984 kB / 406.2 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.172e-05/0.2939, allocations: 7.938 kB / 406.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.2939, allocations: 4.125 kB / 406.2 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.294, allocations: 4 kB / 406.2 MB, free: 2.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.405e-05/0.294, allocations: 122 kB / 406.3 MB, free: 2.273 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2941, allocations: 0 / 406.3 MB, free: 2.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.2943, allocations: 12 kB / 406.3 MB, free: 2.262 MB / 318.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.00062/0.2949, allocations: 0.7742 MB / 407.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001952/0.2952, allocations: 63.97 kB / 407.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2952, allocations: 0 / 407.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.026e-05/0.2952, allocations: 23.98 kB / 407.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.2956, allocations: 35.88 kB / 407.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.2971, allocations: 1.539 MB / 408.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.2974, allocations: 0.7003 MB / 409.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.604e-05/0.2974, allocations: 8.656 kB / 409.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.2975, allocations: 23.42 kB / 409.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2975, allocations: 0 / 409.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01987/0.3174, allocations: 2.014 MB / 411.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.583/7.901, allocations: 6.469 kB / 411.5 MB, free: 13.04 MB / 334.1 MB (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 3.6e-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) 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) "" Variables in the reference:time,sample1.y,triggeredSampler.y Variables in the result:time,clockToTrigger.u,sample1.y,triggeredSampler.u,triggeredSampler.y,sine.amplitude