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.0008561/0.0008561, allocations: 76.08 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.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.0008391/0.0008391, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8922/0.8922, allocations: 173.4 MB / 200.4 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 1.222e-06/1.222e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.374e-05/1.496e-05, allocations: 5.516 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001847/0.001862, allocations: 1.629 MB / 320.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006118/0.002474, allocations: 494.6 kB / 320.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.021e-05/0.002544, allocations: 0 / 320.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.732e-05/0.002581, allocations: 11.81 kB / 320.6 MB, free: 4.203 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.002701, allocations: 23.84 kB / 320.6 MB, free: 4.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.002925, allocations: 55.77 kB / 320.6 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.364e-05/0.003018, allocations: 67.77 kB / 320.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.851e-05/0.003107, allocations: 24.2 kB / 320.7 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.926e-05/0.003176, allocations: 35.91 kB / 320.8 MB, free: 3.996 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.948e-05/0.003225, allocations: 27.89 kB / 320.8 MB, free: 3.969 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.003246, allocations: 4 kB / 320.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.099e-05/0.003257, allocations: 8 kB / 320.8 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.315e-05/0.0033, allocations: 15.92 kB / 320.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.003332, allocations: 19.92 kB / 320.8 MB, free: 3.922 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.003442, allocations: 79.64 kB / 320.9 MB, free: 3.844 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.003444, allocations: 4 kB / 320.9 MB, free: 3.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.003444, allocations: 0 / 320.9 MB, free: 3.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.003448, allocations: 0 / 320.9 MB, free: 3.84 MB / 282.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.0003425/0.00379, allocations: 325.8 kB / 321.2 MB, free: 3.492 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.003823, allocations: 8.922 kB / 321.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.883e-05/0.003852, allocations: 38.75 kB / 321.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.321e-05/0.003875, allocations: 8.891 kB / 321.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.004035, allocations: 145.6 kB / 321.4 MB, free: 3.262 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.634e-06/0.004043, allocations: 384 / 321.4 MB, free: 3.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.004054, allocations: 12.38 kB / 321.5 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.004283, allocations: 133.6 kB / 321.6 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.00429, allocations: 192 / 321.6 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.004299, allocations: 4.125 kB / 321.6 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.004303, allocations: 0 / 321.6 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.474e-05/0.004368, allocations: 39.91 kB / 321.6 MB, free: 3.059 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003112/0.004679, allocations: 272.7 kB / 321.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.004817, allocations: 77.06 kB / 322 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.294e-05/0.00486, allocations: 33.8 kB / 322 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.004877, allocations: 4 kB / 322 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.046e-05/0.004957, allocations: 67.33 kB / 322.1 MB, free: 2.531 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.004959, allocations: 0 / 322.1 MB, free: 2.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001937/0.005152, allocations: 117.5 kB / 322.2 MB, free: 2.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.005197, allocations: 89.05 kB / 322.3 MB, free: 2.305 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.013e-05/0.005277, allocations: 145.8 kB / 322.4 MB, free: 2.152 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.005309, allocations: 25.7 kB / 322.4 MB, free: 2.121 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.116e-05/0.00535, allocations: 92.14 kB / 322.5 MB, free: 2.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.005366, allocations: 15.89 kB / 322.5 MB, free: 2.012 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.005399, allocations: 25.72 kB / 322.6 MB, free: 1.98 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.005466, allocations: 318.8 kB / 322.9 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.866e-05/0.005514, allocations: 23.92 kB / 322.9 MB, free: 1.637 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-05/0.005552, allocations: 38.56 kB / 322.9 MB, free: 1.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.323e-05/0.005625, allocations: 66.44 kB / 323 MB, free: 1.516 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.005628, allocations: 0 / 323 MB, free: 1.516 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001048/0.005733, allocations: 93.56 kB / 323.1 MB, free: 1.418 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.005744, allocations: 4 kB / 323.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.005748, allocations: 320 / 323.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.00576, allocations: 0 / 323.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.836e-05/0.005808, allocations: 11.98 kB / 323.1 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.005813, allocations: 7.938 kB / 323.1 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.538e-05/0.005839, allocations: 12.06 kB / 323.1 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.005844, allocations: 0 / 323.1 MB, free: 1.383 MB / 282.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 6.575e-05/0.005909, allocations: 129.9 kB / 323.3 MB, free: 1.246 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.94e-05/0.005949, allocations: 57.61 kB / 323.3 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.005975, allocations: 16.45 kB / 323.3 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.005977, allocations: 0 / 323.3 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.005981, allocations: 4 kB / 323.3 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.005985, allocations: 0 / 323.3 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.006215, allocations: 313.5 kB / 323.6 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.006216, allocations: 0 / 323.6 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-05/0.006242, allocations: 12 kB / 323.7 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.006243, allocations: 0 / 323.7 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.006251, allocations: 3.984 kB / 323.7 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.006253, allocations: 4 kB / 323.7 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.006255, allocations: 3.938 kB / 323.7 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.006373, allocations: 196.3 kB / 323.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.797e-05/0.006401, allocations: 23.89 kB / 323.9 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.006416, allocations: 7.938 kB / 323.9 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.611e-05/0.006452, allocations: 7.984 kB / 323.9 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.642e-05/0.006478, allocations: 7.938 kB / 323.9 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.006483, allocations: 4.281 kB / 323.9 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.756e-05/0.006531, allocations: 121.8 kB / 324 MB, free: 412 kB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006531, allocations: 0 / 324 MB, free: 412 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001437/0.006674, allocations: 11.94 kB / 324 MB, free: 400 kB / 282.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.0003537/0.007028, allocations: 0.764 MB / 324.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.007138, allocations: 51.91 kB / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.00714, allocations: 0 / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.215e-05/0.007172, allocations: 24.17 kB / 324.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.007398, allocations: 29.97 kB / 324.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000893/0.008291, allocations: 1.481 MB / 326.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.673e-05/0.008348, allocations: 85.11 kB / 326.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.619e-05/0.008374, allocations: 12.17 kB / 326.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/0.008417, allocations: 28.48 kB / 326.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.008418, allocations: 0 / 326.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01379/0.02221, allocations: 2.699 MB / 329.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.882/6.905, allocations: 3.125 kB / 329.2 MB, free: 11.23 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.576023650355637]