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.001407/0.001407, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 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.001572/0.001572, allocations: 205.5 kB / 24.51 MB, free: 3.945 MB / 14.72 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 1.494/1.494, allocations: 230.5 MB / 258.2 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 59.91 kB / 378.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2849, allocations: 53.41 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003017/0.2879, allocations: 1.639 MB / 433.6 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.289, allocations: 0.5415 MB / 434.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.566e-05/0.2891, allocations: 0 / 434.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.458e-05/0.2891, allocations: 7.875 kB / 434.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.2893, allocations: 15.86 kB / 434.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003494/0.2896, allocations: 71.8 kB / 434.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.2897, allocations: 63.78 kB / 434.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.2898, allocations: 18.33 kB / 434.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.29, allocations: 43.78 kB / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.14e-05/0.29, allocations: 31.84 kB / 434.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.29, allocations: 4 kB / 434.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.299e-05/0.2901, allocations: 12 kB / 434.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.465e-05/0.2901, allocations: 19.92 kB / 434.4 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.403e-05/0.2902, allocations: 31.8 kB / 434.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.2904, allocations: 91.45 kB / 434.5 MB, free: 3.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2904, allocations: 0 / 434.5 MB, free: 3.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2904, allocations: 0 / 434.5 MB, free: 3.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.2904, allocations: 0 / 434.5 MB, free: 3.891 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.0004987/0.2909, allocations: 325.9 kB / 434.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2909, allocations: 8.031 kB / 434.8 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.64e-05/0.2909, allocations: 4.188 kB / 434.8 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.604e-05/0.291, allocations: 42.73 kB / 434.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.2911, allocations: 20.84 kB / 434.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.2914, allocations: 146.3 kB / 435 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.2914, allocations: 8.125 kB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.2914, allocations: 11.94 kB / 435.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.2917, allocations: 144.9 kB / 435.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.2917, allocations: 0 / 435.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.2917, allocations: 4 kB / 435.2 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2917, allocations: 0 / 435.2 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.2919, allocations: 31.97 kB / 435.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000524/0.2924, allocations: 264.7 kB / 435.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.2926, allocations: 73.3 kB / 435.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.585e-05/0.2927, allocations: 41.62 kB / 435.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.2927, allocations: 4 kB / 435.6 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001321/0.2929, allocations: 59.36 kB / 435.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.703e-06/0.2929, allocations: 0 / 435.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000346/0.2932, allocations: 121.7 kB / 435.8 MB, free: 2.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/0.2933, allocations: 81.11 kB / 435.9 MB, free: 2.344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.2934, allocations: 149.7 kB / 436 MB, free: 2.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.2935, allocations: 37.7 kB / 436.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/0.2935, allocations: 88.14 kB / 436.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.2935, allocations: 19.95 kB / 436.2 MB, free: 2.035 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.2936, allocations: 29.67 kB / 436.2 MB, free: 2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.2938, allocations: 326.8 kB / 436.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.743e-05/0.2939, allocations: 19.98 kB / 436.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.256e-05/0.2939, allocations: 61.08 kB / 436.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.2941, allocations: 89.08 kB / 436.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2941, allocations: 4.25 kB / 436.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002284/0.2943, allocations: 121.5 kB / 436.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.2944, allocations: 10.81 kB / 436.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2944, allocations: 0 / 436.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.2944, allocations: 8.094 kB / 436.8 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.201e-05/0.2945, allocations: 19.92 kB / 436.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.2945, allocations: 4 kB / 436.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.095e-05/0.2945, allocations: 11.88 kB / 436.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.2946, allocations: 4 kB / 436.8 MB, free: 1.285 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.0001134/0.2947, allocations: 125.8 kB / 437 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/0.2947, allocations: 53.59 kB / 437 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.326e-05/0.2948, allocations: 16.39 kB / 437 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.2948, allocations: 7.938 kB / 437 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2948, allocations: 0 / 437 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2948, allocations: 0 / 437 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004026/0.2952, allocations: 309.6 kB / 437.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.2952, allocations: 3.938 kB / 437.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.002e-05/0.2953, allocations: 11.94 kB / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2953, allocations: 0 / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.2953, allocations: 7.984 kB / 437.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2953, allocations: 0 / 437.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.2953, allocations: 3.984 kB / 437.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.2956, allocations: 200.3 kB / 437.6 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.368e-05/0.2956, allocations: 23.88 kB / 437.6 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.2956, allocations: 4 kB / 437.6 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.453e-05/0.2957, allocations: 7.984 kB / 437.6 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.2958, allocations: 3.938 kB / 437.6 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.2958, allocations: 8 kB / 437.6 MB, free: 436 kB / 334.1 MB Notification: Performance of sorting global known variables: time 8.744e-05/0.2959, allocations: 110.8 kB / 437.7 MB, free: 328 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2959, allocations: 0 / 437.7 MB, free: 328 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.2961, allocations: 19.95 kB / 437.7 MB, free: 308 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.0006667/0.2968, allocations: 0.764 MB / 438.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.297, allocations: 76.22 kB / 438.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.297, allocations: 3.938 kB / 438.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.175e-05/0.2971, allocations: 19.98 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.2974, allocations: 28.19 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.2991, allocations: 1.553 MB / 440.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.174e-05/0.2992, allocations: 88.98 kB / 440.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.209e-05/0.2992, allocations: 4.438 kB / 440.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.405e-05/0.2993, allocations: 31.36 kB / 440.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2993, allocations: 0 / 440.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03175/0.331, allocations: 2.272 MB / 442.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.21, allocations: 8 kB / 442.6 MB, free: 11.41 MB / 350.1 MB " [Timeout remaining time 649] (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/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_trunk_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.870616503991187]