Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002266/0.002266, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 51.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2406, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003/0.2436, allocations: 1.668 MB / 432.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.2448, allocations: 0.5842 MB / 433.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.965e-05/0.2449, allocations: 4 kB / 433.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.042e-05/0.2449, allocations: 11.88 kB / 433.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.2451, allocations: 15.86 kB / 433.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.2454, allocations: 71.73 kB / 433.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.2456, allocations: 67.78 kB / 433.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.2457, allocations: 12.22 kB / 433.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.2458, allocations: 39.84 kB / 433.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.107e-05/0.2459, allocations: 31.78 kB / 433.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.2459, allocations: 8 kB / 433.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.153e-05/0.2459, allocations: 12 kB / 433.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.027e-05/0.246, allocations: 19.92 kB / 433.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.972e-05/0.246, allocations: 43.73 kB / 433.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.2462, allocations: 81.27 kB / 433.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2462, allocations: 3.938 kB / 433.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2462, allocations: 0 / 433.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2462, allocations: 0 / 433.8 MB, free: 4.184 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.0005147/0.2467, allocations: 321.9 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.2468, allocations: 8.031 kB / 434.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/0.2468, allocations: 42.73 kB / 434.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.247, allocations: 16.84 kB / 434.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.2472, allocations: 154.9 kB / 434.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.2472, allocations: 4.375 kB / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.2473, allocations: 15.88 kB / 434.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003226/0.2476, allocations: 140.9 kB / 434.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2476, allocations: 3.938 kB / 434.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.2476, allocations: 4 kB / 434.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.2476, allocations: 0 / 434.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.2477, allocations: 31.97 kB / 434.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004899/0.2482, allocations: 276.7 kB / 434.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.2484, allocations: 69.19 kB / 434.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.396e-05/0.2485, allocations: 33.8 kB / 434.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.2485, allocations: 4 kB / 434.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001308/0.2486, allocations: 75.28 kB / 435 MB, free: 2.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.2486, allocations: 0 / 435 MB, free: 2.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003127/0.249, allocations: 117.5 kB / 435.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/0.249, allocations: 81.11 kB / 435.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.2492, allocations: 155.6 kB / 435.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.2492, allocations: 25.7 kB / 435.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.837e-05/0.2493, allocations: 104.2 kB / 435.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/0.2493, allocations: 15.91 kB / 435.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.255e-05/0.2493, allocations: 29.66 kB / 435.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.2495, allocations: 314.8 kB / 435.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.42e-05/0.2496, allocations: 23.98 kB / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.243e-05/0.2496, allocations: 61.12 kB / 435.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.2498, allocations: 89.27 kB / 436 MB, free: 1.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2498, allocations: 0 / 436 MB, free: 1.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000215/0.25, allocations: 121.5 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.25, allocations: 8 kB / 436.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.25, allocations: 3.984 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.25, allocations: 0 / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.639e-05/0.2501, allocations: 15.94 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.2501, allocations: 3.938 kB / 436.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.692e-05/0.2502, allocations: 15.92 kB / 436.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2502, allocations: 7.984 kB / 436.2 MB, free: 1.574 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.0001038/0.2503, allocations: 127.4 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.103e-05/0.2504, allocations: 61.58 kB / 436.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.2504, allocations: 12.41 kB / 436.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.2504, allocations: 3.938 kB / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2504, allocations: 4 kB / 436.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.2504, allocations: 3.984 kB / 436.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003685/0.2508, allocations: 313.5 kB / 436.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2508, allocations: 8 kB / 436.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-05/0.2509, allocations: 11.94 kB / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2509, allocations: 0 / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.2509, allocations: 0 / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.2509, allocations: 3.984 kB / 436.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.2509, allocations: 7.938 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.2511, allocations: 188.4 kB / 436.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.2512, allocations: 27.88 kB / 436.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.2512, allocations: 7.938 kB / 436.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.961e-05/0.2513, allocations: 7.984 kB / 436.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/0.2513, allocations: 0 / 436.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.2513, allocations: 4.125 kB / 436.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.103e-05/0.2514, allocations: 114.4 kB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2514, allocations: 0 / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002501/0.2516, allocations: 15.95 kB / 437.1 MB, free: 0.5859 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.0006523/0.2523, allocations: 0.7787 MB / 437.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002004/0.2525, allocations: 63.89 kB / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2525, allocations: 384 / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.927e-05/0.2526, allocations: 28.11 kB / 437.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.2529, allocations: 35.94 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.2546, allocations: 1.542 MB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.2549, allocations: 0.7002 MB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.773e-05/0.255, allocations: 8.438 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.082e-05/0.255, allocations: 27.42 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.255, allocations: 0 / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02972/0.2847, allocations: 2.189 MB / 442.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11, allocations: 7.312 kB / 442.4 MB, free: 11.18 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 13.574100256999373]