Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001696/0.001696, allocations: 124.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002035/0.002035, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 230.4 MB / 254 MB, free: 15.05 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 63.89 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1042, allocations: 53.37 MB / 426.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003053/0.1073, allocations: 1.655 MB / 428 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.1084, allocations: 0.5805 MB / 428.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.077e-05/0.1084, allocations: 3.938 kB / 428.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.8e-05/0.1085, allocations: 7.875 kB / 428.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.1086, allocations: 15.86 kB / 428.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.109, allocations: 63.8 kB / 428.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1091, allocations: 67.78 kB / 428.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.1092, allocations: 16.22 kB / 428.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.1094, allocations: 43.78 kB / 428.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.694e-05/0.1095, allocations: 31.84 kB / 428.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.1095, allocations: 4 kB / 428.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.753e-05/0.1095, allocations: 16 kB / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.167e-05/0.1096, allocations: 15.92 kB / 428.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.221e-05/0.1096, allocations: 35.75 kB / 428.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.1098, allocations: 87.5 kB / 429 MB, free: 1.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.1098, allocations: 8 kB / 429 MB, free: 1.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1098, allocations: 0 / 429 MB, free: 1.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1098, allocations: 0 / 429 MB, free: 1.973 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.0005882/0.1104, allocations: 391 kB / 429.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1105, allocations: 12.03 kB / 429.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.994e-05/0.1105, allocations: 42.73 kB / 429.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.1107, allocations: 24.83 kB / 429.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.1109, allocations: 203.5 kB / 429.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.1109, allocations: 4.375 kB / 429.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.111, allocations: 11.94 kB / 429.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.1113, allocations: 146.9 kB / 429.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1113, allocations: 3.984 kB / 429.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.1113, allocations: 4 kB / 429.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.1113, allocations: 4 kB / 429.8 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.1114, allocations: 27.92 kB / 429.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004683/0.1119, allocations: 305.7 kB / 430.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.1121, allocations: 150.2 kB / 430.3 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.003e-05/0.1122, allocations: 41.8 kB / 430.4 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.1122, allocations: 4 kB / 430.4 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/0.1124, allocations: 71.28 kB / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.1124, allocations: 3.938 kB / 430.4 MB, free: 344 kB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003133/0.1127, allocations: 109.6 kB / 430.5 MB, free: 228 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.962e-05/0.1127, allocations: 85.05 kB / 430.6 MB, free: 124 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.1129, allocations: 157.7 kB / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.1129, allocations: 25.7 kB / 430.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.113, allocations: 96.12 kB / 430.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.113, allocations: 19.97 kB / 430.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.493e-05/0.1131, allocations: 33.66 kB / 430.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1132, allocations: 314.8 kB / 431.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.504e-05/0.1133, allocations: 19.98 kB / 431.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.934e-05/0.1134, allocations: 69.06 kB / 431.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.1135, allocations: 85.08 kB / 431.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1135, allocations: 0 / 431.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002117/0.1137, allocations: 113.4 kB / 431.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1137, allocations: 8 kB / 431.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1137, allocations: 0 / 431.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.1138, allocations: 3.984 kB / 431.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.972e-05/0.1138, allocations: 16.09 kB / 431.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1138, allocations: 4 kB / 431.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.687e-05/0.1139, allocations: 15.92 kB / 431.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1139, allocations: 4 kB / 431.6 MB, free: 15.08 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.0001131/0.114, allocations: 129 kB / 431.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.261e-05/0.1141, allocations: 53.64 kB / 431.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.77e-05/0.1141, allocations: 12.55 kB / 431.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1141, allocations: 3.938 kB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.1141, allocations: 4 kB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.587e-06/0.1142, allocations: 11.97 kB / 431.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000399/0.1146, allocations: 346.8 kB / 432.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.1146, allocations: 4 kB / 432.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.798e-05/0.1146, allocations: 11.94 kB / 432.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1146, allocations: 0 / 432.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.1146, allocations: 3.984 kB / 432.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1146, allocations: 3.938 kB / 432.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.1146, allocations: 4 kB / 432.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.1149, allocations: 204.3 kB / 432.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.448e-05/0.115, allocations: 92.98 kB / 432.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.115, allocations: 12.08 kB / 432.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.922e-05/0.1151, allocations: 3.938 kB / 432.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.681e-05/0.1151, allocations: 4 kB / 432.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.1151, allocations: 0 / 432.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.541e-05/0.1152, allocations: 119.2 kB / 432.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1152, allocations: 0 / 432.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.1154, allocations: 15.95 kB / 432.6 MB, free: 13.95 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.0006408/0.1161, allocations: 0.7678 MB / 433.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001917/0.1163, allocations: 63.97 kB / 433.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1163, allocations: 0 / 433.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.325e-05/0.1163, allocations: 23.92 kB / 433.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.1167, allocations: 35.94 kB / 433.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.1183, allocations: 1.536 MB / 435 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1186, allocations: 0.7002 MB / 435.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.055e-05/0.1186, allocations: 8.422 kB / 435.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.1187, allocations: 27.44 kB / 435.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1187, allocations: 0 / 435.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.1424, allocations: 2.069 MB / 437.8 MB, free: 8.684 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.69/7.832, allocations: 7.922 kB / 437.8 MB, free: 8.676 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.587756202905439]