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.001303/0.001303, allocations: 118.3 kB / 18.5 MB, free: 4.562 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.001329/0.001329, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.396/1.396, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.001472/0.001472, allocations: 51.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0955/0.09697, allocations: 53.32 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.00282/0.09979, allocations: 1.661 MB / 428.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.1008, allocations: 0.5804 MB / 429.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.832e-05/0.1009, allocations: 4 kB / 429.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.375e-05/0.1009, allocations: 7.875 kB / 429.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.1011, allocations: 19.84 kB / 429.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.1014, allocations: 67.81 kB / 429.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.1015, allocations: 67.77 kB / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.635e-05/0.1016, allocations: 16.22 kB / 429.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.1017, allocations: 35.8 kB / 429.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.376e-05/0.1018, allocations: 31.84 kB / 429.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.1018, allocations: 4 kB / 429.5 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.918e-05/0.1018, allocations: 15.98 kB / 429.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.634e-05/0.1019, allocations: 23.92 kB / 429.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.898e-05/0.1019, allocations: 35.75 kB / 429.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.1021, allocations: 83.52 kB / 429.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1021, allocations: 4 kB / 429.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1021, allocations: 0 / 429.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1021, allocations: 0 / 429.7 MB, free: 2.117 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.0005277/0.1026, allocations: 395 kB / 430.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1027, allocations: 12.03 kB / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.697e-05/0.1027, allocations: 8.125 kB / 430.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.93e-05/0.1027, allocations: 46.73 kB / 430.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1029, allocations: 16.84 kB / 430.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.1031, allocations: 208.8 kB / 430.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.1031, allocations: 8.125 kB / 430.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.1032, allocations: 8 kB / 430.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.1034, allocations: 139.2 kB / 430.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1035, allocations: 3.938 kB / 430.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.1035, allocations: 4 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1035, allocations: 0 / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.1036, allocations: 35.91 kB / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004586/0.104, allocations: 301.7 kB / 430.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.1043, allocations: 158.2 kB / 431 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.246e-05/0.1043, allocations: 33.8 kB / 431 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.1044, allocations: 0 / 431 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001206/0.1045, allocations: 75.28 kB / 431.1 MB, free: 488 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.1045, allocations: 0 / 431.1 MB, free: 488 kB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003091/0.1048, allocations: 117.5 kB / 431.2 MB, free: 364 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.1049, allocations: 81.11 kB / 431.3 MB, free: 264 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.105, allocations: 155.9 kB / 431.4 MB, free: 100 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.105, allocations: 25.7 kB / 431.5 MB, free: 68 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.1051, allocations: 92.14 kB / 431.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.1051, allocations: 19.89 kB / 431.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.525e-05/0.1052, allocations: 29.67 kB / 431.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1053, allocations: 318.8 kB / 431.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.775e-05/0.1054, allocations: 23.98 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.392e-05/0.1054, allocations: 57.14 kB / 432 MB, free: 15.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.1056, allocations: 89 kB / 432.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1056, allocations: 0 / 432.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002148/0.1058, allocations: 117.5 kB / 432.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.1058, allocations: 4 kB / 432.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1058, allocations: 4 kB / 432.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1058, allocations: 4.125 kB / 432.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.1059, allocations: 16.3 kB / 432.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1059, allocations: 0 / 432.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.33e-05/0.106, allocations: 15.94 kB / 432.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.106, allocations: 7.984 kB / 432.2 MB, free: 15.22 MB / 366.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 9.766e-05/0.1061, allocations: 129.9 kB / 432.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-05/0.1062, allocations: 57.64 kB / 432.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.1062, allocations: 12.31 kB / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1062, allocations: 3.938 kB / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1062, allocations: 0 / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.1062, allocations: 4 kB / 432.5 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.1066, allocations: 346.5 kB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1066, allocations: 3.938 kB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.827e-05/0.1067, allocations: 19.98 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1067, allocations: 4 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.1067, allocations: 0 / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1067, allocations: 3.938 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1067, allocations: 3.938 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.1069, allocations: 200.3 kB / 433 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.144e-05/0.107, allocations: 101 kB / 433.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.107, allocations: 0 / 433.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.391e-05/0.1071, allocations: 15.92 kB / 433.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.1071, allocations: 4 kB / 433.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.1072, allocations: 0 / 433.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.972e-05/0.1072, allocations: 114.1 kB / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1072, allocations: 0 / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00025/0.1075, allocations: 19.95 kB / 433.3 MB, free: 14.09 MB / 366.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.0006584/0.1081, allocations: 0.7757 MB / 434 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001915/0.1083, allocations: 59.91 kB / 434.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1083, allocations: 0 / 434.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.909e-05/0.1084, allocations: 28.3 kB / 434.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.1087, allocations: 28 kB / 434.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.1104, allocations: 1.539 MB / 435.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1108, allocations: 0.7003 MB / 436.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.055e-05/0.1108, allocations: 16.42 kB / 436.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.604e-05/0.1109, allocations: 23.8 kB / 436.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1109, allocations: 0 / 436.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.1292, allocations: 2.096 MB / 438.5 MB, free: 8.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/7.919, allocations: 4.094 kB / 438.5 MB, free: 8.812 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.471205643960275]