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.001996/0.001997, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002435/0.002435, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 63.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3041, allocations: 50.53 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003203/0.3073, allocations: 1.661 MB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.3085, allocations: 0.5687 MB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.022e-05/0.3086, allocations: 3.938 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.826e-05/0.3087, allocations: 3.938 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.3088, allocations: 19.84 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.3092, allocations: 67.38 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.3093, allocations: 63.84 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.3095, allocations: 24.2 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.3096, allocations: 35.86 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.336e-05/0.3097, allocations: 31.84 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.3097, allocations: 8 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.778e-05/0.3097, allocations: 11.98 kB / 411.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.115e-05/0.3098, allocations: 19.92 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.3099, allocations: 35.75 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.3101, allocations: 90.47 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3101, allocations: 0 / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3101, allocations: 0 / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.3101, 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.000589/0.3107, allocations: 395 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3107, allocations: 12.03 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.37e-05/0.3108, allocations: 38.73 kB / 411.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.311, allocations: 24.83 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.3113, allocations: 209.8 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.3113, allocations: 8.312 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.3113, allocations: 7.938 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.3117, allocations: 145 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3117, allocations: 0 / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3117, allocations: 0 / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3117, allocations: 0 / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.3118, allocations: 39.95 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/0.3124, allocations: 309.5 kB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.3126, allocations: 158.2 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.091e-05/0.3127, allocations: 41.8 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.3128, allocations: 0 / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/0.3129, allocations: 63.34 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.3129, allocations: 0 / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000312/0.3132, allocations: 121.5 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/0.3133, allocations: 81.11 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.3135, allocations: 157.1 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.3135, allocations: 29.7 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.08e-05/0.3136, allocations: 92.12 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.3136, allocations: 11.91 kB / 413.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/0.3137, allocations: 37.59 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3139, allocations: 318.8 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.363e-05/0.3139, allocations: 19.98 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.556e-05/0.314, allocations: 61.14 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.3142, allocations: 93.31 kB / 413.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3142, allocations: 0 / 413.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002163/0.3144, allocations: 113.5 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3144, allocations: 4 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3145, allocations: 4 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3145, allocations: 0 / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.668e-05/0.3146, allocations: 24.02 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3146, allocations: 4 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.569e-05/0.3146, allocations: 7.938 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.3147, 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.0001138/0.3148, allocations: 121.8 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.237e-05/0.3149, allocations: 57.58 kB / 414.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.3149, allocations: 16.31 kB / 414.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3149, allocations: 7.875 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3149, allocations: 0 / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.3149, allocations: 4 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.3153, allocations: 346.7 kB / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3153, allocations: 0 / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.74e-05/0.3154, allocations: 11.94 kB / 414.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3154, allocations: 7.922 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.3154, allocations: 8 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3154, allocations: 0 / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.3155, allocations: 3.984 kB / 414.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.3157, allocations: 196.3 kB / 414.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.021e-05/0.3158, allocations: 101 kB / 414.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.3158, allocations: 0 / 414.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-05/0.3159, allocations: 11.98 kB / 414.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/0.3159, allocations: 128 / 414.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.316, allocations: 8 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001036/0.3161, allocations: 114.8 kB / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3161, allocations: 4 kB / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.3163, allocations: 19.95 kB / 415 MB, free: 10.87 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.0006767/0.317, allocations: 0.7678 MB / 415.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000217/0.3172, allocations: 67.97 kB / 415.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3173, allocations: 0 / 415.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.29e-05/0.3173, allocations: 19.98 kB / 415.8 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.3177, allocations: 35.94 kB / 415.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.3194, allocations: 1.551 MB / 417.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.3198, allocations: 0.7079 MB / 418.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.963e-05/0.3198, allocations: 4.438 kB / 418.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.853e-05/0.3199, allocations: 27.42 kB / 418.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3199, allocations: 0 / 418.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.3429, allocations: 2.028 MB / 420.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.429, allocations: 15.91 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.1.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