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.0008906/0.0008906, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 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.0008589/0.0008589, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.9091/0.9091, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.382e-06/1.382e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.223e-05/1.362e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002027/0.00204, allocations: 1.65 MB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007882/0.002828, allocations: 0.5414 MB / 326.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.141e-05/0.00292, allocations: 3.938 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.988e-05/0.00297, allocations: 3.938 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.003131, allocations: 19.8 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.00345, allocations: 83.59 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.003555, allocations: 63.72 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.003658, allocations: 20.2 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.003769, allocations: 39.91 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.33e-05/0.003823, allocations: 27.95 kB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.00384, allocations: 7.938 kB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.476e-05/0.003874, allocations: 8 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.557e-05/0.00392, allocations: 19.92 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.216e-05/0.003952, allocations: 19.92 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.00409, allocations: 87.62 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.004092, allocations: 0 / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.004093, allocations: 0 / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.004098, allocations: 0 / 327.1 MB, free: 13.27 MB / 298.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.0003735/0.004471, allocations: 321.9 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.004508, allocations: 19.97 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.773e-05/0.004536, allocations: 38.75 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.004648, allocations: 24.83 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.004826, allocations: 146 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.004836, allocations: 4.375 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.004848, allocations: 12.31 kB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.00509, allocations: 148.3 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-06/0.005098, allocations: 0 / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.005108, allocations: 4 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.005113, allocations: 0 / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.008e-05/0.005183, allocations: 31.97 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003383/0.005521, allocations: 268.7 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.005678, allocations: 73.19 kB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.005724, allocations: 37.73 kB / 328.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.005747, allocations: 4 kB / 328.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.065e-05/0.005838, allocations: 67.34 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.263e-06/0.005839, allocations: 0 / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002133/0.006052, allocations: 121.5 kB / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.006097, allocations: 81.11 kB / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.433e-05/0.006181, allocations: 148.8 kB / 328.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.006194, allocations: 33.7 kB / 328.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.59e-05/0.00623, allocations: 88.14 kB / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.006248, allocations: 23.83 kB / 328.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.006277, allocations: 25.67 kB / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.938e-05/0.006347, allocations: 322.8 kB / 329.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.312e-05/0.00638, allocations: 19.98 kB / 329.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.843e-05/0.006418, allocations: 46.5 kB / 329.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.555e-05/0.006484, allocations: 54.56 kB / 329.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.006486, allocations: 0 / 329.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001052/0.006591, allocations: 97.56 kB / 329.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.006602, allocations: 4 kB / 329.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.006606, allocations: 0 / 329.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.006617, allocations: 4 kB / 329.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.24e-05/0.006659, allocations: 11.92 kB / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.006664, allocations: 0 / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.283e-05/0.006686, allocations: 7.938 kB / 329.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.006693, allocations: 4 kB / 329.4 MB, free: 10.78 MB / 298.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.425e-05/0.006757, allocations: 138 kB / 329.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.006795, allocations: 53.59 kB / 329.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.396e-05/0.006819, allocations: 16.64 kB / 329.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.006822, allocations: 4 kB / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.006825, allocations: 3.938 kB / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.006828, allocations: 0 / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.007041, allocations: 313.6 kB / 329.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.007042, allocations: 0 / 329.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.486e-05/0.007067, allocations: 12.31 kB / 329.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.007068, allocations: 0 / 329.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.007078, allocations: 15.98 kB / 329.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.00708, allocations: 3.938 kB / 329.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.007081, allocations: 0 / 329.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001219/0.007202, allocations: 196.3 kB / 330.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.007231, allocations: 19.94 kB / 330.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.007244, allocations: 0 / 330.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.772e-05/0.007282, allocations: 15.92 kB / 330.1 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.331e-05/0.007305, allocations: 0 / 330.1 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.007311, allocations: 4 kB / 330.1 MB, free: 9.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.771e-05/0.007359, allocations: 107.2 kB / 330.2 MB, free: 9.809 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007359, allocations: 0 / 330.2 MB, free: 9.809 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001522/0.007511, allocations: 20 kB / 330.3 MB, free: 9.789 MB / 298.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.0005727/0.008084, allocations: 0.7678 MB / 331 MB, free: 8.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.00819, allocations: 55.91 kB / 331.1 MB, free: 8.938 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.008191, allocations: 0 / 331.1 MB, free: 8.938 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.272e-05/0.008224, allocations: 23.92 kB / 331.1 MB, free: 8.914 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.008465, allocations: 29.33 kB / 331.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008879/0.009353, allocations: 1.484 MB / 332.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.542e-05/0.009408, allocations: 89.09 kB / 332.7 MB, free: 7.195 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.441e-05/0.009443, allocations: 4.734 kB / 332.7 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.009486, allocations: 28.67 kB / 332.7 MB, free: 7.164 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.009486, allocations: 0 / 332.7 MB, free: 7.164 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.02528, allocations: 2.721 MB / 335.5 MB, free: 4.562 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.669/6.694, allocations: 7.938 kB / 335.5 MB, free: 4.555 MB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.362016734667122]