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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001441, allocations: 214 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002997/0.002997, allocations: 67.89 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2679, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003095/0.271, allocations: 1.666 MB / 432.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.2721, allocations: 0.5804 MB / 433.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.693e-05/0.2722, allocations: 7.938 kB / 433.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.505e-05/0.2723, allocations: 3.938 kB / 433.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.2724, allocations: 23.84 kB / 433.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.2728, allocations: 67.75 kB / 433.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.2729, allocations: 63.78 kB / 433.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.273, allocations: 20.2 kB / 433.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.2731, allocations: 31.92 kB / 433.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.485e-05/0.2732, allocations: 35.78 kB / 433.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.2732, allocations: 4 kB / 433.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.326e-05/0.2733, allocations: 12 kB / 433.7 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.343e-05/0.2733, allocations: 19.92 kB / 433.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.124e-05/0.2734, allocations: 35.73 kB / 433.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001773/0.2735, allocations: 91.94 kB / 433.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.2735, allocations: 0 / 433.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2735, allocations: 0 / 433.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2736, allocations: 0 / 433.9 MB, free: 4.02 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.0005114/0.2741, allocations: 321.9 kB / 434.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2741, allocations: 8.031 kB / 434.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.114e-05/0.2741, allocations: 42.69 kB / 434.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.2743, allocations: 24.83 kB / 434.2 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.2746, allocations: 158.4 kB / 434.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.2746, allocations: 4.375 kB / 434.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.084e-05/0.2746, allocations: 7.938 kB / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003047/0.2749, allocations: 148.9 kB / 434.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.2749, allocations: 4 kB / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.2749, allocations: 0 / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2749, allocations: 0 / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.275, allocations: 31.98 kB / 434.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004792/0.2755, allocations: 276.7 kB / 434.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.2757, allocations: 81.12 kB / 434.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.404e-05/0.2758, allocations: 33.8 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.2758, allocations: 4 kB / 435 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.276, allocations: 71.34 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.276, allocations: 0 / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003265/0.2763, allocations: 113.5 kB / 435.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/0.2764, allocations: 81.11 kB / 435.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.2765, allocations: 153.7 kB / 435.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.2766, allocations: 25.7 kB / 435.4 MB, free: 2.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.2766, allocations: 92.14 kB / 435.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.2766, allocations: 19.89 kB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.038e-05/0.2767, allocations: 33.61 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2769, allocations: 318.8 kB / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.277, allocations: 23.98 kB / 435.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.597e-05/0.277, allocations: 57.14 kB / 435.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.2772, allocations: 89.06 kB / 436 MB, free: 1.586 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2772, allocations: 0 / 436 MB, free: 1.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002253/0.2774, allocations: 117.5 kB / 436.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.2774, allocations: 8 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2774, allocations: 0 / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.2775, allocations: 192 / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.689e-05/0.2776, allocations: 24.17 kB / 436.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.2776, allocations: 0 / 436.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.763e-05/0.2776, allocations: 19.88 kB / 436.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.2776, allocations: 7.984 kB / 436.2 MB, free: 1.406 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.0001287/0.2778, allocations: 122 kB / 436.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.2778, allocations: 65.58 kB / 436.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.13e-05/0.2779, allocations: 12.41 kB / 436.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2779, allocations: 3.938 kB / 436.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.2779, allocations: 4 kB / 436.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2779, allocations: 0 / 436.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004193/0.2783, allocations: 317.5 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.2783, allocations: 4 kB / 436.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.254e-05/0.2784, allocations: 19.92 kB / 436.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2784, allocations: 4 kB / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.2784, allocations: 0 / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.2784, allocations: 0 / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.2784, allocations: 4 kB / 436.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.2786, allocations: 196.3 kB / 436.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.2787, allocations: 23.88 kB / 437 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.2787, allocations: 4 kB / 437 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.151e-05/0.2788, allocations: 8 kB / 437 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.2788, allocations: 3.984 kB / 437 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.2788, allocations: 4 kB / 437 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.873e-05/0.2789, allocations: 110.2 kB / 437.1 MB, free: 444 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2789, allocations: 0 / 437.1 MB, free: 444 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.2792, allocations: 19.95 kB / 437.1 MB, free: 424 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.000693/0.2799, allocations: 0.7756 MB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002009/0.2801, allocations: 59.91 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2801, allocations: 0 / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.86e-05/0.2801, allocations: 16 kB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.2805, allocations: 36.72 kB / 438 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.2822, allocations: 1.559 MB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.2826, allocations: 0.7003 MB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.488e-05/0.2826, allocations: 16.42 kB / 440.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.621e-05/0.2827, allocations: 23.42 kB / 440.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2827, allocations: 0 / 440.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.3121, allocations: 2.178 MB / 442.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.53, allocations: 3.859 kB / 442.5 MB, free: 10.99 MB / 350.1 MB " [Timeout remaining time 648] (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 1.79641e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] 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) [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: 14.080643798999517]