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.0008056/0.0008056, allocations: 83.69 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.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.0008347/0.0008347, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.925/0.925, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.464e-06/2.464e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.16e-05/2.407e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002185/0.002209, allocations: 1.664 MB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000843/0.003052, allocations: 0.5374 MB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.468e-05/0.003136, allocations: 8 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.372e-05/0.00319, allocations: 7.875 kB / 326.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.00333, allocations: 11.86 kB / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.003637, allocations: 75.67 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.003747, allocations: 67.77 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.999e-05/0.003847, allocations: 16.22 kB / 327 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.003974, allocations: 47.83 kB / 327 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.26e-05/0.004027, allocations: 23.91 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.004043, allocations: 4 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.614e-05/0.00408, allocations: 12 kB / 327.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.181e-05/0.004131, allocations: 23.91 kB / 327.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.004164, allocations: 15.94 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.004315, allocations: 87.62 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.004318, allocations: 0 / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.004319, allocations: 0 / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.004323, allocations: 0 / 327.2 MB, free: 13.32 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.0004758/0.004799, allocations: 321.9 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.004844, allocations: 12.03 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.274e-05/0.004876, allocations: 34.75 kB / 327.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.005, allocations: 28.83 kB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.005203, allocations: 150.1 kB / 327.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.005213, allocations: 4.375 kB / 327.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.005225, allocations: 8.375 kB / 327.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.005486, allocations: 140.4 kB / 327.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.005495, allocations: 0 / 327.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.005504, allocations: 4 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.00551, allocations: 4 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.136e-05/0.005591, allocations: 35.91 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003599/0.005951, allocations: 268.8 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.006105, allocations: 73.12 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.732e-05/0.006153, allocations: 41.73 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.006174, allocations: 0 / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.928e-05/0.006263, allocations: 71.34 kB / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.006264, allocations: 3.938 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000216/0.00648, allocations: 117.5 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.006537, allocations: 85.05 kB / 328.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.263e-05/0.00663, allocations: 152.8 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.006642, allocations: 25.7 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.006683, allocations: 92.14 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.006704, allocations: 23.89 kB / 328.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.006736, allocations: 25.67 kB / 328.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.586e-05/0.006822, allocations: 330.8 kB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.839e-05/0.00686, allocations: 15.98 kB / 329.2 MB, free: 11.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.765e-05/0.006898, allocations: 42.56 kB / 329.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.327e-05/0.006971, allocations: 58.5 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.006973, allocations: 0 / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001074/0.00708, allocations: 93.88 kB / 329.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.007093, allocations: 12.06 kB / 329.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.007098, allocations: 0 / 329.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.007111, allocations: 0 / 329.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.135e-05/0.007173, allocations: 11.98 kB / 329.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.007179, allocations: 7.984 kB / 329.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.407e-05/0.007203, allocations: 3.938 kB / 329.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.007209, allocations: 4 kB / 329.4 MB, free: 10.82 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.48e-05/0.007284, allocations: 129.8 kB / 329.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.007327, allocations: 49.66 kB / 329.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.133e-05/0.007359, allocations: 16.45 kB / 329.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.007362, allocations: 4 kB / 329.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.007367, allocations: 0 / 329.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.00737, allocations: 0 / 329.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.007619, allocations: 313.5 kB / 329.9 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.007621, allocations: 4 kB / 329.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.89e-05/0.00765, allocations: 8 kB / 329.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.007654, allocations: 8.219 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.007661, allocations: 0 / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.007665, allocations: 3.938 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.007666, allocations: 3.938 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.00779, allocations: 208.4 kB / 330.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.081e-05/0.007821, allocations: 19.94 kB / 330.2 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.007835, allocations: 0 / 330.2 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.637e-05/0.007871, allocations: 11.92 kB / 330.2 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.007899, allocations: 4 kB / 330.2 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-06/0.007905, allocations: 4 kB / 330.2 MB, free: 9.969 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.916e-05/0.007955, allocations: 111.2 kB / 330.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007955, allocations: 0 / 330.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001531/0.008108, allocations: 12 kB / 330.3 MB, free: 9.848 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.0004034/0.008511, allocations: 0.7794 MB / 331.1 MB, free: 9.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.008627, allocations: 55.91 kB / 331.2 MB, free: 8.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.008629, allocations: 0 / 331.2 MB, free: 8.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.337e-05/0.008662, allocations: 19.98 kB / 331.2 MB, free: 8.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.008907, allocations: 27.52 kB / 331.2 MB, free: 8.941 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.009944, allocations: 1.482 MB / 332.7 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.031e-05/0.01, allocations: 85.11 kB / 332.8 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.257e-05/0.01004, allocations: 8.719 kB / 332.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.651e-05/0.01008, allocations: 24.97 kB / 332.8 MB, free: 7.223 MB / 298.7 MB Notification: Performance of SimCode: time 9.22e-07/0.01008, allocations: 0 / 332.8 MB, free: 7.223 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.02599, allocations: 2.725 MB / 335.5 MB, free: 4.641 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.834/6.86, allocations: 15.98 kB / 335.5 MB, free: 4.625 MB / 298.7 MB " [Timeout remaining time 653] (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/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_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: 8.712551776319742]