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.00128/0.00128, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.001337/0.001337, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.457/1.457, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001438/0.001438, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1034, allocations: 53.32 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003359/0.1067, allocations: 1.654 MB / 428 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.1079, allocations: 0.5804 MB / 428.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.297e-05/0.108, allocations: 7.938 kB / 428.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.811e-05/0.1081, allocations: 7.922 kB / 428.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.1082, allocations: 15.88 kB / 428.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003765/0.1086, allocations: 63.8 kB / 428.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.1087, allocations: 67.77 kB / 428.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.1088, allocations: 28.11 kB / 428.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.1089, allocations: 39.83 kB / 428.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.532e-05/0.109, allocations: 23.86 kB / 428.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.109, allocations: 8 kB / 428.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.186e-05/0.1091, allocations: 12 kB / 428.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.1092, allocations: 23.91 kB / 428.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.173e-05/0.1093, allocations: 39.73 kB / 428.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.1094, allocations: 87.45 kB / 429 MB, free: 2.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1094, allocations: 0 / 429 MB, free: 2.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1094, allocations: 0 / 429 MB, free: 2.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1094, allocations: 4 kB / 429 MB, free: 2.113 MB / 350.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.0006164/0.11, allocations: 395 kB / 429.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1101, allocations: 12.03 kB / 429.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.263e-05/0.1101, allocations: 34.75 kB / 429.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.1103, allocations: 24.83 kB / 429.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.1106, allocations: 204.8 kB / 429.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.1107, allocations: 4.312 kB / 429.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.815e-05/0.1107, allocations: 15.94 kB / 429.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000351/0.111, allocations: 143.3 kB / 429.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.111, allocations: 0 / 429.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.111, allocations: 4 kB / 429.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1111, allocations: 0 / 429.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.1112, allocations: 35.97 kB / 429.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.1117, allocations: 297.6 kB / 430.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.112, allocations: 154.3 kB / 430.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.784e-05/0.1121, allocations: 45.72 kB / 430.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.1121, allocations: 4.062 kB / 430.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001368/0.1123, allocations: 63.36 kB / 430.4 MB, free: 500 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.1123, allocations: 0 / 430.4 MB, free: 500 kB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000353/0.1126, allocations: 125.5 kB / 430.5 MB, free: 368 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.979e-05/0.1127, allocations: 81.11 kB / 430.6 MB, free: 268 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.1129, allocations: 148 kB / 430.7 MB, free: 112 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.1129, allocations: 33.64 kB / 430.8 MB, free: 72 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.33e-05/0.113, allocations: 88.14 kB / 430.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.113, allocations: 15.91 kB / 430.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/0.113, allocations: 29.66 kB / 430.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1132, allocations: 322.8 kB / 431.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.319e-05/0.1133, allocations: 27.98 kB / 431.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.996e-05/0.1134, allocations: 61.08 kB / 431.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.1135, allocations: 81.33 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1135, allocations: 4 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002162/0.1137, allocations: 121.4 kB / 431.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1138, allocations: 6.188 kB / 431.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1138, allocations: 8.156 kB / 431.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1138, allocations: 0 / 431.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.675e-05/0.1139, allocations: 23.86 kB / 431.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.1139, allocations: 0 / 431.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.885e-05/0.1139, allocations: 11.94 kB / 431.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.1139, allocations: 4 kB / 431.5 MB, free: 15.22 MB / 366.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.0001217/0.1141, allocations: 117.8 kB / 431.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.809e-05/0.1141, allocations: 61.58 kB / 431.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.445e-05/0.1142, allocations: 16.3 kB / 431.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1142, allocations: 7.938 kB / 431.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1142, allocations: 0 / 431.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1142, allocations: 0 / 431.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.1146, allocations: 338.5 kB / 432.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1146, allocations: 0 / 432.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.708e-05/0.1147, allocations: 23.86 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1147, allocations: 0 / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.1147, allocations: 4 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1147, allocations: 0 / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1147, allocations: 7.938 kB / 432.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.1149, allocations: 200.5 kB / 432.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.076e-05/0.115, allocations: 101 kB / 432.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.1151, allocations: 3.984 kB / 432.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.491e-05/0.1151, allocations: 8 kB / 432.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.1152, allocations: 3.984 kB / 432.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1152, allocations: 8.125 kB / 432.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.194e-05/0.1152, allocations: 114.1 kB / 432.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1152, allocations: 0 / 432.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.1155, allocations: 19.95 kB / 432.6 MB, free: 14.09 MB / 366.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.0006679/0.1162, allocations: 0.7724 MB / 433.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002023/0.1164, allocations: 67.83 kB / 433.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1164, allocations: 0 / 433.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.051e-05/0.1164, allocations: 16 kB / 433.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.1168, allocations: 27.94 kB / 433.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.1186, allocations: 1.555 MB / 435 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.1189, allocations: 0.7002 MB / 435.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.238e-05/0.1189, allocations: 8.422 kB / 435.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.068e-05/0.119, allocations: 26.42 kB / 435.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.119, allocations: 0 / 435.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.143, allocations: 2.045 MB / 437.8 MB, free: 8.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.954/8.097, allocations: 13.94 kB / 437.8 MB, free: 8.832 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.855913439998403]