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.000801/0.000801, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008388/0.0008388, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8753/0.8753, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.122e-05, allocations: 2.984 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002042/0.002063, allocations: 1.664 MB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007201/0.002783, allocations: 0.5376 MB / 326.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.267e-05/0.002856, allocations: 3.938 kB / 326.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.786e-05/0.002894, allocations: 7.922 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.003019, allocations: 15.81 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.003282, allocations: 67.67 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.003383, allocations: 75.7 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.742e-05/0.003471, allocations: 12.23 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.003589, allocations: 51.88 kB / 327 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.678e-05/0.003636, allocations: 19.97 kB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.003651, allocations: 7.938 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.416e-05/0.003686, allocations: 8 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.072e-05/0.003736, allocations: 19.92 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.003767, allocations: 23.91 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.003903, allocations: 83.64 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.003904, allocations: 0 / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.003905, allocations: 0 / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.00391, allocations: 0 / 327.1 MB, free: 13.26 MB / 298.7 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.0003452/0.004255, allocations: 325.9 kB / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.004288, allocations: 11.98 kB / 327.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.868e-05/0.004317, allocations: 42.73 kB / 327.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.063e-05/0.004408, allocations: 20.84 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.004594, allocations: 146.1 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.004603, allocations: 4.375 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.004614, allocations: 8.375 kB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.00483, allocations: 145.2 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.004839, allocations: 4 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.004849, allocations: 4 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.004854, allocations: 3.984 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.531e-05/0.004919, allocations: 27.98 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003231/0.005242, allocations: 276.7 kB / 328.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.005374, allocations: 73.2 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.403e-05/0.005419, allocations: 29.8 kB / 328.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.00544, allocations: 11.92 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.803e-05/0.005528, allocations: 63.36 kB / 328.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.005529, allocations: 3.938 kB / 328.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000209/0.005738, allocations: 125.5 kB / 328.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.005788, allocations: 81.11 kB / 328.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.344e-05/0.005882, allocations: 152.8 kB / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.005895, allocations: 33.7 kB / 328.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.876e-05/0.005934, allocations: 84.14 kB / 328.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.927e-05/0.005953, allocations: 19.84 kB / 328.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.005986, allocations: 29.66 kB / 328.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.476e-05/0.006071, allocations: 322.8 kB / 329.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.331e-05/0.006104, allocations: 16 kB / 329.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.082e-05/0.006145, allocations: 46.5 kB / 329.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.3e-05/0.006218, allocations: 58.55 kB / 329.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.006219, allocations: 0 / 329.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001026/0.006322, allocations: 97.56 kB / 329.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.006334, allocations: 7.281 kB / 329.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.006339, allocations: 0 / 329.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.00635, allocations: 4 kB / 329.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.952e-05/0.00639, allocations: 7.938 kB / 329.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.006394, allocations: 0 / 329.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.535e-05/0.006419, allocations: 11.92 kB / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.006425, allocations: 8.062 kB / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 9 * 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 7.537e-05/0.0065, allocations: 125.8 kB / 329.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.006539, allocations: 53.58 kB / 329.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.409e-05/0.006563, allocations: 12.47 kB / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.006566, allocations: 4 kB / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.00657, allocations: 0 / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.006575, allocations: 4.219 kB / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002253/0.0068, allocations: 309.6 kB / 329.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.006803, allocations: 3.984 kB / 329.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.834e-05/0.006831, allocations: 20.3 kB / 329.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.006833, allocations: 0 / 329.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.006841, allocations: 8 kB / 329.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.006843, allocations: 3.938 kB / 329.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.006844, allocations: 0 / 329.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.006969, allocations: 204.5 kB / 330.1 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.006999, allocations: 19.92 kB / 330.1 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.007011, allocations: 4 kB / 330.1 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.675e-05/0.007048, allocations: 7.938 kB / 330.1 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.007076, allocations: 7.984 kB / 330.1 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.007082, allocations: 8 kB / 330.2 MB, free: 9.895 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.787e-05/0.00713, allocations: 107.2 kB / 330.3 MB, free: 9.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00713, allocations: 0 / 330.3 MB, free: 9.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001524/0.007282, allocations: 16 kB / 330.3 MB, free: 9.773 MB / 298.7 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.0003673/0.007649, allocations: 0.7678 MB / 331 MB, free: 8.977 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.007755, allocations: 55.91 kB / 331.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.62e-07/0.007756, allocations: 0 / 331.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.504e-05/0.007791, allocations: 20.12 kB / 331.1 MB, free: 8.902 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.008021, allocations: 32.27 kB / 331.1 MB, free: 8.875 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009955/0.009017, allocations: 1.48 MB / 332.6 MB, free: 7.297 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.225e-05/0.009079, allocations: 93.09 kB / 332.7 MB, free: 7.184 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.719e-05/0.009106, allocations: 4.734 kB / 332.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.281e-05/0.009149, allocations: 32.95 kB / 332.8 MB, free: 7.148 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.00915, allocations: 0 / 332.8 MB, free: 7.148 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.02655, allocations: 2.71 MB / 335.5 MB, free: 4.551 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.605/6.631, allocations: 11.88 kB / 335.5 MB, free: 4.539 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins/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: 8.408218360505998]