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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009047/0.0009047, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007964/0.0007964, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9442/0.9442, allocations: 173.3 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.314e-06/2.314e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.244e-05/2.476e-05, allocations: 2.281 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002156/0.00218, allocations: 1.632 MB / 320.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006743/0.002855, allocations: 498.5 kB / 320.6 MB, free: 4.234 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.22e-05/0.002937, allocations: 0 / 320.6 MB, free: 4.234 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.786e-05/0.002985, allocations: 19.8 kB / 320.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.003132, allocations: 7.875 kB / 320.6 MB, free: 4.207 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.003406, allocations: 63.67 kB / 320.7 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.00351, allocations: 67.78 kB / 320.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.003611, allocations: 24.2 kB / 320.7 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.302e-05/0.003694, allocations: 39.89 kB / 320.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.904e-05/0.003743, allocations: 23.91 kB / 320.8 MB, free: 3.988 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.003766, allocations: 4 kB / 320.8 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.003776, allocations: 8 kB / 320.8 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.733e-05/0.003824, allocations: 15.92 kB / 320.8 MB, free: 3.961 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.348e-05/0.003857, allocations: 23.92 kB / 320.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.003979, allocations: 79.62 kB / 320.9 MB, free: 3.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.003981, allocations: 0 / 320.9 MB, free: 3.859 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.003982, allocations: 0 / 320.9 MB, free: 3.859 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.003986, allocations: 4 kB / 320.9 MB, free: 3.855 MB / 282.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.0003875/0.004373, allocations: 321.9 kB / 321.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.00441, allocations: 12.92 kB / 321.3 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.922e-05/0.00444, allocations: 34.75 kB / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.004469, allocations: 12.88 kB / 321.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.004656, allocations: 137.6 kB / 321.4 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.766e-06/0.004664, allocations: 384 / 321.4 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.004677, allocations: 12.38 kB / 321.5 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.004933, allocations: 141.5 kB / 321.6 MB, free: 3.117 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.004941, allocations: 192 / 321.6 MB, free: 3.117 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.004953, allocations: 8.125 kB / 321.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.004959, allocations: 4 kB / 321.6 MB, free: 3.105 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.675e-05/0.005026, allocations: 27.92 kB / 321.6 MB, free: 3.078 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003414/0.005367, allocations: 268.7 kB / 321.9 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.005519, allocations: 81.08 kB / 322 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.311e-05/0.005562, allocations: 33.8 kB / 322 MB, free: 2.633 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.005584, allocations: 7.984 kB / 322 MB, free: 2.625 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.604e-05/0.00567, allocations: 59.34 kB / 322.1 MB, free: 2.555 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.005671, allocations: 0 / 322.1 MB, free: 2.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.000212/0.005883, allocations: 121.5 kB / 322.2 MB, free: 2.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.005937, allocations: 89.05 kB / 322.3 MB, free: 2.324 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.375e-05/0.00602, allocations: 141.8 kB / 322.4 MB, free: 2.176 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.006033, allocations: 33.7 kB / 322.5 MB, free: 2.137 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.094e-05/0.006074, allocations: 88.12 kB / 322.5 MB, free: 2.047 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.006093, allocations: 19.97 kB / 322.6 MB, free: 2.027 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/0.006126, allocations: 25.7 kB / 322.6 MB, free: 1.996 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.429e-05/0.0062, allocations: 314.8 kB / 322.9 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.649e-05/0.006237, allocations: 23.92 kB / 322.9 MB, free: 1.656 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.747e-05/0.006274, allocations: 42.56 kB / 323 MB, free: 1.605 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.233e-05/0.006347, allocations: 62.44 kB / 323 MB, free: 1.535 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.00635, allocations: 4 kB / 323 MB, free: 1.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001055/0.006456, allocations: 93.75 kB / 323.1 MB, free: 1.434 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.006467, allocations: 6.969 kB / 323.1 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.006473, allocations: 4.297 kB / 323.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.006485, allocations: 7.984 kB / 323.1 MB, free: 1.418 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.68e-05/0.006532, allocations: 4 kB / 323.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.006539, allocations: 7.938 kB / 323.1 MB, free: 1.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.263e-05/0.006561, allocations: 4 kB / 323.1 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.006569, allocations: 12.05 kB / 323.2 MB, free: 1.391 MB / 282.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 6.965e-05/0.006638, allocations: 128.8 kB / 323.3 MB, free: 1.258 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.006678, allocations: 53.59 kB / 323.3 MB, free: 1.199 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.006706, allocations: 12.47 kB / 323.3 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.006709, allocations: 4 kB / 323.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.006713, allocations: 0 / 323.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.006716, allocations: 0 / 323.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.006961, allocations: 313.5 kB / 323.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.006963, allocations: 0 / 323.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.092e-05/0.006993, allocations: 15.98 kB / 323.7 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.006995, allocations: 0 / 323.7 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.007004, allocations: 4 kB / 323.7 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.007005, allocations: 4 kB / 323.7 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.007007, allocations: 3.938 kB / 323.7 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.007135, allocations: 200.3 kB / 323.9 MB, free: 0.582 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.316e-05/0.007168, allocations: 23.89 kB / 323.9 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.007183, allocations: 7.938 kB / 323.9 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.536e-05/0.007218, allocations: 0 / 323.9 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.007249, allocations: 15.92 kB / 323.9 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.007255, allocations: 4.281 kB / 323.9 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.682e-05/0.007302, allocations: 113.6 kB / 324 MB, free: 432 kB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007302, allocations: 0 / 324 MB, free: 432 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001496/0.007452, allocations: 15.94 kB / 324.1 MB, free: 416 kB / 282.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.0004525/0.007904, allocations: 0.7601 MB / 324.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001515/0.008056, allocations: 55.91 kB / 324.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.008057, allocations: 0 / 324.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.398e-05/0.008101, allocations: 20.17 kB / 324.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.00844, allocations: 27.95 kB / 324.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.009744, allocations: 1.474 MB / 326.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.375e-05/0.009818, allocations: 89.09 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.522e-05/0.009853, allocations: 4 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.009905, allocations: 32.48 kB / 326.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.009906, allocations: 0 / 326.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01767/0.02758, allocations: 2.696 MB / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.798/6.826, allocations: 11.12 kB / 329.2 MB, free: 11.25 MB / 298.7 MB " [Timeout remaining time 653] (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 1.79641e-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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.707792134955525]