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.00147/0.00147, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001555/0.001555, allocations: 191.5 kB / 24.5 MB, free: 4.09 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.366/1.366, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.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.001515/0.001515, allocations: 51.91 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2443, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003022/0.2473, allocations: 1.664 MB / 425.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009935/0.2483, allocations: 0.5064 MB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.232e-05/0.2484, allocations: 3.938 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.97e-05/0.2484, allocations: 15.92 kB / 425.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.2486, allocations: 11.88 kB / 425.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.2489, allocations: 59.8 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.249, allocations: 63.78 kB / 425.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.2491, allocations: 24.22 kB / 425.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.572e-05/0.2492, allocations: 27.86 kB / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.476e-05/0.2493, allocations: 31.78 kB / 425.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.2493, allocations: 8 kB / 425.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.445e-05/0.2494, allocations: 4 kB / 425.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.626e-05/0.2494, allocations: 19.92 kB / 425.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.2495, allocations: 39.73 kB / 425.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.2497, allocations: 76.5 kB / 426 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2497, allocations: 0 / 426 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2497, allocations: 0 / 426 MB, free: 12.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.2497, allocations: 0 / 426 MB, free: 12.04 MB / 334.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.0005213/0.2502, allocations: 325.8 kB / 426.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.2502, allocations: 16.02 kB / 426.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.233e-05/0.2502, allocations: 4.125 kB / 426.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/0.2503, allocations: 42.75 kB / 426.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.262e-05/0.2503, allocations: 8.891 kB / 426.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.2506, allocations: 142.3 kB / 426.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.2506, allocations: 8.375 kB / 426.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.33e-05/0.2506, allocations: 4.375 kB / 426.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.2509, allocations: 144.9 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.2509, allocations: 0 / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.2509, allocations: 0 / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.2509, allocations: 4 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.2511, allocations: 35.91 kB / 426.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004694/0.2515, allocations: 280.7 kB / 427 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.2518, allocations: 77.12 kB / 427 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.272e-05/0.2518, allocations: 37.78 kB / 427.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.2519, allocations: 4 kB / 427.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001259/0.252, allocations: 59.41 kB / 427.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.252, allocations: 0 / 427.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003203/0.2523, allocations: 121.5 kB / 427.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/0.2524, allocations: 89.05 kB / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.2525, allocations: 144.4 kB / 427.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.2526, allocations: 33.69 kB / 427.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.343e-05/0.2526, allocations: 96.08 kB / 427.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.2526, allocations: 11.91 kB / 427.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-05/0.2527, allocations: 33.7 kB / 427.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2529, allocations: 322.8 kB / 428 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.478e-05/0.2529, allocations: 19.98 kB / 428 MB, free: 9.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.607e-05/0.253, allocations: 65.08 kB / 428.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.2532, allocations: 81.08 kB / 428.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2532, allocations: 0 / 428.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002036/0.2534, allocations: 117.5 kB / 428.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2534, allocations: 4 kB / 428.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2534, allocations: 4 kB / 428.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2534, allocations: 0 / 428.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.758e-05/0.2535, allocations: 15.94 kB / 428.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.2535, allocations: 3.984 kB / 428.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.2536, allocations: 8 kB / 428.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.2536, allocations: 12.09 kB / 428.3 MB, free: 9.445 MB / 334.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.2537, allocations: 128.8 kB / 428.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.129e-05/0.2538, allocations: 57.59 kB / 428.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.2538, allocations: 16.39 kB / 428.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2538, allocations: 0 / 428.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2538, allocations: 0 / 428.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2538, allocations: 0 / 428.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.2542, allocations: 321.5 kB / 428.8 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2542, allocations: 4.375 kB / 428.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.359e-05/0.2542, allocations: 8 kB / 428.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.2542, allocations: 8 kB / 428.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.2543, allocations: 3.984 kB / 428.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2543, allocations: 7.875 kB / 428.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2543, allocations: 0 / 428.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002503/0.2545, allocations: 208.3 kB / 429 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.2546, allocations: 16.12 kB / 429.1 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.2546, allocations: 8 kB / 429.1 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.325e-05/0.2546, allocations: 7.922 kB / 429.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.2547, allocations: 7.984 kB / 429.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.2547, allocations: 0 / 429.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.73e-05/0.2548, allocations: 115.2 kB / 429.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2548, allocations: 0 / 429.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.255, allocations: 12 kB / 429.2 MB, free: 8.449 MB / 334.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.0006403/0.2556, allocations: 0.764 MB / 430 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.2558, allocations: 63.91 kB / 430 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2558, allocations: 4.312 kB / 430 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.946e-05/0.2559, allocations: 27.92 kB / 430.1 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.2562, allocations: 31.23 kB / 430.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.2579, allocations: 1.551 MB / 431.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.2583, allocations: 0.7041 MB / 432.4 MB, free: 5.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.918e-05/0.2583, allocations: 4.672 kB / 432.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.021e-05/0.2584, allocations: 31.36 kB / 432.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2584, allocations: 0 / 432.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.2799, allocations: 2.185 MB / 434.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.89, allocations: 4.062 kB / 434.6 MB, free: 3.062 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.319598558999132]