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.001128/0.001129, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.00116/0.00116, allocations: 200 kB / 18.01 MB, free: 5.047 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.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2711, 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.003024/0.2741, allocations: 1.633 MB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009301/0.2751, allocations: 0.4952 MB / 402.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.086e-05/0.2752, allocations: 3.938 kB / 402.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.936e-05/0.2752, allocations: 7.922 kB / 402.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.2754, allocations: 15.88 kB / 402.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003152/0.2757, allocations: 63.75 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.2759, allocations: 67.77 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.276, allocations: 28.2 kB / 402.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.998e-05/0.2761, allocations: 27.86 kB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.697e-05/0.2762, allocations: 27.86 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.2762, allocations: 4 kB / 402.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.2762, allocations: 7.938 kB / 402.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.878e-05/0.2763, allocations: 27.91 kB / 402.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.739e-05/0.2763, allocations: 39.73 kB / 402.7 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.2765, allocations: 70.67 kB / 402.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2765, allocations: 0 / 402.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2765, allocations: 0 / 402.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2765, allocations: 0 / 402.8 MB, free: 6.285 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.000568/0.2771, allocations: 398.9 kB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.2771, allocations: 12.03 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.377e-05/0.2772, allocations: 42.67 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.2772, allocations: 12.89 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.2775, allocations: 216.1 kB / 403.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.2775, allocations: 384 / 403.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.2775, allocations: 12.38 kB / 403.4 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.2779, allocations: 144.2 kB / 403.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.2779, allocations: 3.984 kB / 403.6 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.2779, allocations: 0 / 403.6 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2779, allocations: 0 / 403.6 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.278, allocations: 35.92 kB / 403.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005218/0.2786, allocations: 301.6 kB / 403.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002546/0.2788, allocations: 162.2 kB / 404.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.713e-05/0.2789, allocations: 33.8 kB / 404.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.279, allocations: 4 kB / 404.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001266/0.2791, allocations: 63.39 kB / 404.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.542e-06/0.2791, allocations: 0 / 404.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003229/0.2794, allocations: 117.5 kB / 404.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.2795, allocations: 85.11 kB / 404.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.2797, allocations: 145.7 kB / 404.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.2797, allocations: 29.7 kB / 404.5 MB, free: 4.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.2798, allocations: 96.06 kB / 404.6 MB, free: 4.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.2798, allocations: 19.97 kB / 404.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.2798, allocations: 33.7 kB / 404.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.28, allocations: 322.8 kB / 405 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.359e-05/0.2801, allocations: 19.98 kB / 405 MB, free: 3.746 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.679e-05/0.2801, allocations: 57.14 kB / 405.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.2803, allocations: 85.06 kB / 405.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.2803, allocations: 4 kB / 405.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001916/0.2805, allocations: 113.6 kB / 405.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2805, allocations: 8 kB / 405.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2805, allocations: 0 / 405.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.2805, allocations: 7.984 kB / 405.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.672e-05/0.2806, allocations: 15.92 kB / 405.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.2806, allocations: 4 kB / 405.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.311e-05/0.2807, allocations: 8.312 kB / 405.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.2807, allocations: 4 kB / 405.3 MB, free: 3.402 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.0001086/0.2808, allocations: 139.4 kB / 405.5 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.659e-05/0.2809, allocations: 57.59 kB / 405.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.2809, allocations: 12.31 kB / 405.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2809, allocations: 4 kB / 405.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.281, allocations: 0 / 405.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.281, allocations: 0 / 405.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.2813, allocations: 350.3 kB / 405.9 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2813, allocations: 4 kB / 405.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.6e-05/0.2814, allocations: 15.98 kB / 405.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2814, allocations: 0 / 405.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.2814, allocations: 0 / 405.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2814, allocations: 3.938 kB / 405.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.2814, allocations: 4 kB / 405.9 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.2816, allocations: 196.3 kB / 406.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.411e-05/0.2817, allocations: 97 kB / 406.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.2817, allocations: 12 kB / 406.2 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.084e-05/0.2818, allocations: 7.922 kB / 406.2 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.2819, allocations: 4 kB / 406.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.2819, allocations: 4 kB / 406.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.469e-05/0.282, allocations: 109.8 kB / 406.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.282, allocations: 0 / 406.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.2822, allocations: 16 kB / 406.3 MB, free: 2.277 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.0006075/0.2828, allocations: 0.7722 MB / 407.1 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001876/0.283, allocations: 63.91 kB / 407.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.283, allocations: 0 / 407.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.306e-05/0.2831, allocations: 20.36 kB / 407.2 MB, free: 1.395 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.2834, allocations: 36.08 kB / 407.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.2849, allocations: 1.542 MB / 408.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.2852, allocations: 0.6963 MB / 409.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.296e-05/0.2853, allocations: 16.64 kB / 409.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.87e-05/0.2853, allocations: 27.42 kB / 409.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2853, allocations: 0 / 409.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.3063, allocations: 2.014 MB / 411.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.224, allocations: 7.406 kB / 411.5 MB, free: 13.05 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