Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 218 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 43.92 kB / 378.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2557, allocations: 53.36 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002921/0.2587, allocations: 1.647 MB / 433.5 MB, free: 5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.2597, allocations: 0.5337 MB / 434.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.2e-05/0.2598, allocations: 4 kB / 434.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.589e-05/0.2598, allocations: 11.86 kB / 434.1 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.26, allocations: 19.88 kB / 434.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.2603, allocations: 63.8 kB / 434.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.2604, allocations: 67.78 kB / 434.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.2605, allocations: 16.22 kB / 434.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.2606, allocations: 43.78 kB / 434.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.407e-05/0.2607, allocations: 27.84 kB / 434.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.2607, allocations: 4 kB / 434.3 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.248e-05/0.2608, allocations: 16 kB / 434.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.827e-05/0.2608, allocations: 15.92 kB / 434.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.767e-05/0.2609, allocations: 31.8 kB / 434.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.261, allocations: 88.36 kB / 434.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.261, allocations: 4 kB / 434.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.261, allocations: 0 / 434.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.261, allocations: 0 / 434.5 MB, free: 4.055 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.0005056/0.2615, allocations: 321.9 kB / 434.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2616, allocations: 8.031 kB / 434.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.428e-05/0.2616, allocations: 4.188 kB / 434.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.732e-05/0.2616, allocations: 42.73 kB / 434.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.2618, allocations: 20.83 kB / 434.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.262, allocations: 150.9 kB / 435 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.262, allocations: 8.125 kB / 435 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.262, allocations: 15.88 kB / 435 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.2623, allocations: 137 kB / 435.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.2623, allocations: 0 / 435.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.2624, allocations: 0 / 435.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.2624, allocations: 8 kB / 435.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.2625, allocations: 35.95 kB / 435.2 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004467/0.2629, allocations: 260.7 kB / 435.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/0.2632, allocations: 73.19 kB / 435.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.102e-05/0.2632, allocations: 41.73 kB / 435.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.2633, allocations: 0 / 435.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001214/0.2634, allocations: 67.34 kB / 435.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.2634, allocations: 8 kB / 435.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003054/0.2637, allocations: 113.5 kB / 435.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.2638, allocations: 81.11 kB / 435.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.2639, allocations: 153.7 kB / 436 MB, free: 2.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.2639, allocations: 25.7 kB / 436 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.264, allocations: 96.2 kB / 436.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.008e-05/0.264, allocations: 19.89 kB / 436.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-05/0.2641, allocations: 29.61 kB / 436.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.2642, allocations: 322.8 kB / 436.5 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.731e-05/0.2643, allocations: 27.98 kB / 436.5 MB, free: 1.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.673e-05/0.2644, allocations: 61.33 kB / 436.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.2646, allocations: 89.06 kB / 436.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2646, allocations: 0 / 436.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003417/0.2649, allocations: 117.5 kB / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.2649, allocations: 4 kB / 436.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2649, allocations: 4 kB / 436.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.265, allocations: 3.938 kB / 436.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-05/0.265, allocations: 19.92 kB / 436.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.2651, allocations: 3.984 kB / 436.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.593e-05/0.2651, allocations: 11.94 kB / 436.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-06/0.2651, allocations: 4 kB / 436.8 MB, free: 1.449 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.0001048/0.2652, allocations: 127.9 kB / 436.9 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.2653, allocations: 61.58 kB / 437 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.2654, allocations: 12.41 kB / 437 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2654, allocations: 3.938 kB / 437 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.2654, allocations: 4 kB / 437 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2654, allocations: 0 / 437 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003734/0.2658, allocations: 305.9 kB / 437.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.2658, allocations: 3.938 kB / 437.3 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.856e-05/0.2658, allocations: 15.92 kB / 437.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2658, allocations: 0 / 437.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.2658, allocations: 15.92 kB / 437.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2658, allocations: 4 kB / 437.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2658, allocations: 0 / 437.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.2661, allocations: 196.4 kB / 437.5 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/0.2662, allocations: 23.88 kB / 437.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.2662, allocations: 7.984 kB / 437.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.2664, allocations: 7.938 kB / 437.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.2664, allocations: 4 kB / 437.6 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.2664, allocations: 3.984 kB / 437.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.072e-05/0.2665, allocations: 109.1 kB / 437.7 MB, free: 488 kB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2665, allocations: 4 kB / 437.7 MB, free: 484 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.2667, allocations: 19.95 kB / 437.7 MB, free: 464 kB / 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.0006645/0.2674, allocations: 0.7681 MB / 438.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.2676, allocations: 63.84 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2676, allocations: 0 / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.223e-05/0.2677, allocations: 19.98 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.268, allocations: 32.31 kB / 438.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.2699, allocations: 1.548 MB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.27, allocations: 88.98 kB / 440.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.586e-05/0.27, allocations: 20.3 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.124e-05/0.2701, allocations: 19.44 kB / 440.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2701, allocations: 0 / 440.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.2929, allocations: 2.279 MB / 442.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.86, allocations: 7.359 kB / 442.6 MB, free: 11.61 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/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_4.1.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.continuous,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.272736808983609]