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.00178/0.00178, allocations: 115.7 kB / 18.49 MB, free: 4.59 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.001998/0.001998, allocations: 194.5 kB / 21.43 MB, free: 1.66 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.364/1.364, allocations: 225.6 MB / 249.8 MB, free: 3.621 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 47.92 kB / 366.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 52.15 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003156/0.1116, allocations: 1.645 MB / 420.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009555/0.1126, allocations: 0.5142 MB / 420.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.914e-05/0.1126, allocations: 0 / 420.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.104e-05/0.1127, allocations: 11.86 kB / 420.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.1128, allocations: 15.86 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.1131, allocations: 55.81 kB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.1132, allocations: 63.78 kB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.1134, allocations: 20.22 kB / 420.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.414e-05/0.1134, allocations: 35.91 kB / 420.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.659e-05/0.1135, allocations: 31.73 kB / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.1135, allocations: 4 kB / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.424e-05/0.1135, allocations: 8 kB / 420.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.1136, allocations: 19.92 kB / 420.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.371e-05/0.1137, allocations: 39.78 kB / 421 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001435/0.1138, allocations: 75.53 kB / 421 MB, free: 10.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1138, allocations: 0 / 421 MB, free: 10.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1138, allocations: 4 kB / 421 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1138, allocations: 0 / 421 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.0005597/0.1144, allocations: 406.9 kB / 421.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.1144, allocations: 8.031 kB / 421.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.605e-05/0.1144, allocations: 192 / 421.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.1145, allocations: 38.75 kB / 421.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.1145, allocations: 12.89 kB / 421.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.1148, allocations: 198.4 kB / 421.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.1148, allocations: 8.375 kB / 421.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1148, allocations: 12.31 kB / 421.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.1151, allocations: 147.2 kB / 421.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1151, allocations: 0 / 421.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.1151, allocations: 4 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.1151, allocations: 0 / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.1152, allocations: 31.98 kB / 421.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005031/0.1158, allocations: 309.5 kB / 422.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.116, allocations: 158.2 kB / 422.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.426e-05/0.1161, allocations: 41.73 kB / 422.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.1161, allocations: 0 / 422.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.1162, allocations: 59.39 kB / 422.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.1162, allocations: 0 / 422.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003304/0.1166, allocations: 117.5 kB / 422.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.1166, allocations: 89.09 kB / 422.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.1168, allocations: 141.8 kB / 422.8 MB, free: 8.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.1168, allocations: 29.7 kB / 422.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.887e-05/0.1169, allocations: 96.12 kB / 422.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.1169, allocations: 15.91 kB / 422.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.1169, allocations: 29.7 kB / 422.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1171, allocations: 318.8 kB / 423.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.537e-05/0.1171, allocations: 23.98 kB / 423.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.1173, allocations: 65.06 kB / 423.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.1174, allocations: 85.08 kB / 423.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1174, allocations: 0 / 423.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000217/0.1176, allocations: 109.7 kB / 423.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.1176, allocations: 7.938 kB / 423.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.1176, allocations: 4.156 kB / 423.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.1177, allocations: 4 kB / 423.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.959e-05/0.1177, allocations: 27.91 kB / 423.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1177, allocations: 320 / 423.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.329e-05/0.1178, allocations: 4 kB / 423.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.1178, allocations: 15.92 kB / 423.6 MB, free: 7.172 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.0001027/0.1179, allocations: 121.8 kB / 423.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.699e-05/0.118, allocations: 61.53 kB / 423.8 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.908e-05/0.118, allocations: 12.31 kB / 423.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.118, allocations: 4 kB / 423.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1181, allocations: 3.938 kB / 423.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.1181, allocations: 7.984 kB / 423.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003787/0.1184, allocations: 346.5 kB / 424.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1184, allocations: 0 / 424.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.847e-05/0.1185, allocations: 11.94 kB / 424.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1185, allocations: 4 kB / 424.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.1185, allocations: 0 / 424.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.238e-05/0.1185, allocations: 7.922 kB / 424.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1185, allocations: 4 kB / 424.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.1188, allocations: 200.3 kB / 424.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.969e-05/0.1188, allocations: 93 kB / 424.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.1189, allocations: 4 kB / 424.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.747e-05/0.1189, allocations: 11.92 kB / 424.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.119, allocations: 4 kB / 424.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.119, allocations: 4 kB / 424.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.246e-05/0.119, allocations: 117.5 kB / 424.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.119, allocations: 0 / 424.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.1193, allocations: 12 kB / 424.6 MB, free: 6.051 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.0006727/0.12, allocations: 0.7724 MB / 425.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001856/0.1202, allocations: 63.84 kB / 425.4 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1202, allocations: 0 / 425.4 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.329e-05/0.1202, allocations: 19.98 kB / 425.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.1205, allocations: 27.95 kB / 425.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.1221, allocations: 1.535 MB / 427 MB, free: 3.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1225, allocations: 0.7079 MB / 427.7 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.901e-05/0.1225, allocations: 12.66 kB / 427.7 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.345e-05/0.1226, allocations: 23.42 kB / 427.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1226, allocations: 0 / 427.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01792/0.1405, allocations: 2.08 MB / 429.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.819/7.959, allocations: 4.062 kB / 429.8 MB, free: 0.8047 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 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.mat","/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:clockToTrigger.u,clockToTrigger.y,clockToTrigger.y2,clockToTrigger.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(clockToTrigger.y2),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start [Calling sys.exit(0), Time elapsed: 10.35742123099044]