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.001284/0.001284, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001384/0.001384, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 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 1.459/1.459, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001483/0.001483, allocations: 55.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1018, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003038/0.1048, allocations: 1.637 MB / 419.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009753/0.1058, allocations: 0.5181 MB / 420 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.85e-05/0.1059, allocations: 0 / 420 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.53e-05/0.1059, allocations: 7.875 kB / 420 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.1061, allocations: 15.86 kB / 420 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.1064, allocations: 63.81 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.1065, allocations: 63.83 kB / 420.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.1067, allocations: 16.23 kB / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.403e-05/0.1068, allocations: 35.84 kB / 420.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.236e-05/0.1068, allocations: 35.78 kB / 420.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.1068, allocations: 4 kB / 420.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.53e-05/0.1069, allocations: 8 kB / 420.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.538e-05/0.1069, allocations: 15.92 kB / 420.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.334e-05/0.107, allocations: 35.8 kB / 420.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.1071, allocations: 75.59 kB / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1071, allocations: 0 / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1071, allocations: 0 / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1071, allocations: 3.938 kB / 420.3 MB, free: 10.05 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.0006066/0.1077, allocations: 410.9 kB / 420.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1078, allocations: 8.031 kB / 420.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.488e-05/0.1078, allocations: 42.73 kB / 420.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.402e-05/0.1079, allocations: 8.891 kB / 420.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.1081, allocations: 198.3 kB / 421 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.1081, allocations: 4.375 kB / 421 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.1082, allocations: 8.375 kB / 421 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.1085, allocations: 143.5 kB / 421.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1085, allocations: 0 / 421.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.1085, allocations: 4 kB / 421.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.1085, allocations: 7.984 kB / 421.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.1086, allocations: 23.98 kB / 421.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005193/0.1092, allocations: 313.5 kB / 421.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.1094, allocations: 150.3 kB / 421.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.452e-05/0.1095, allocations: 41.78 kB / 421.7 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.1095, allocations: 11.88 kB / 421.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001309/0.1097, allocations: 63.39 kB / 421.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.813e-06/0.1097, allocations: 0 / 421.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003182/0.11, allocations: 113.5 kB / 421.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.1101, allocations: 85.11 kB / 421.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.1102, allocations: 145.8 kB / 422.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.1102, allocations: 29.7 kB / 422.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.869e-05/0.1103, allocations: 100 kB / 422.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.1103, allocations: 15.89 kB / 422.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.1104, allocations: 25.72 kB / 422.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1106, allocations: 326.8 kB / 422.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.596e-05/0.1107, allocations: 19.98 kB / 422.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.183e-05/0.1107, allocations: 65.08 kB / 422.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.1109, allocations: 89.06 kB / 422.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1109, allocations: 0 / 422.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002129/0.1111, allocations: 113.8 kB / 422.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1111, allocations: 4 kB / 422.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1111, allocations: 4 kB / 422.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.1111, allocations: 0 / 422.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.805e-05/0.1112, allocations: 24.14 kB / 422.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1112, allocations: 3.938 kB / 422.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.347e-05/0.1113, allocations: 4 kB / 422.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.1113, allocations: 4 kB / 422.9 MB, free: 7.176 MB / 350.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.0001117/0.1114, allocations: 129.8 kB / 423 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.803e-05/0.1115, allocations: 57.59 kB / 423.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.1115, allocations: 16.31 kB / 423.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1115, allocations: 0 / 423.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1115, allocations: 0 / 423.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1115, allocations: 7.938 kB / 423.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003985/0.1119, allocations: 350.5 kB / 423.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1119, allocations: 0 / 423.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.96e-05/0.112, allocations: 11.98 kB / 423.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.112, allocations: 0 / 423.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.112, allocations: 7.938 kB / 423.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.112, allocations: 3.938 kB / 423.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.112, allocations: 0 / 423.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.1123, allocations: 204.3 kB / 423.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.604e-05/0.1124, allocations: 101 kB / 423.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.1124, allocations: 0 / 423.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.551e-05/0.1125, allocations: 7.938 kB / 423.8 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.1125, allocations: 4.219 kB / 423.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.1125, allocations: 8 kB / 423.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.133e-05/0.1126, allocations: 113.5 kB / 423.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1126, allocations: 96 / 423.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.1129, allocations: 15.94 kB / 423.9 MB, free: 6.047 MB / 350.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.0007202/0.1136, allocations: 0.7757 MB / 424.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.1138, allocations: 67.91 kB / 424.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1138, allocations: 0 / 424.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.819e-05/0.1139, allocations: 19.98 kB / 424.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.1142, allocations: 24.28 kB / 424.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.116, allocations: 1.546 MB / 426.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.1163, allocations: 0.6963 MB / 427 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.777e-05/0.1164, allocations: 8.656 kB / 427 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.238e-05/0.1164, allocations: 19.44 kB / 427.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1164, allocations: 0 / 427.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.1412, allocations: 2.033 MB / 429.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.138/8.28, allocations: 14.05 kB / 429.1 MB, free: 0.8203 MB / 350.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/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: 10.817258904222399]