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.001583/0.001583, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001893/0.001893, allocations: 210.7 kB / 24.53 MB, free: 4.07 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.533/1.533, allocations: 230.5 MB / 258.2 MB, free: 8.02 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.001875/0.001875, allocations: 55.91 kB / 378.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3015, allocations: 53.41 MB / 432 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003274/0.3048, allocations: 1.666 MB / 433.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.3059, allocations: 0.5921 MB / 434.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.8e-05/0.306, allocations: 3.938 kB / 434.2 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.929e-05/0.306, allocations: 7.875 kB / 434.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.3061, allocations: 7.938 kB / 434.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.3065, allocations: 75.72 kB / 434.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.3066, allocations: 63.78 kB / 434.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3068, allocations: 16.22 kB / 434.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.3069, allocations: 39.91 kB / 434.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.689e-05/0.307, allocations: 35.73 kB / 434.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.307, allocations: 4 kB / 434.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.718e-05/0.307, allocations: 12 kB / 434.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.143e-05/0.3071, allocations: 19.92 kB / 434.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.751e-05/0.3072, allocations: 35.73 kB / 434.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.3074, allocations: 88.41 kB / 434.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3074, allocations: 0 / 434.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3074, allocations: 0 / 434.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3074, allocations: 0 / 434.6 MB, free: 4.027 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.0005765/0.308, allocations: 321.9 kB / 435 MB, free: 3.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.392e-05/0.308, allocations: 8.031 kB / 435 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.9e-05/0.3081, allocations: 4.188 kB / 435 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.3081, allocations: 38.69 kB / 435 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.3083, allocations: 24.83 kB / 435 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.3086, allocations: 154.4 kB / 435.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.3086, allocations: 12.12 kB / 435.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.3086, allocations: 4 kB / 435.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.3089, allocations: 140.9 kB / 435.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.309, allocations: 3.984 kB / 435.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.309, allocations: 7.984 kB / 435.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.309, allocations: 4 kB / 435.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.3091, allocations: 35.92 kB / 435.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004759/0.3096, allocations: 264.8 kB / 435.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.3098, allocations: 81.12 kB / 435.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.877e-05/0.3099, allocations: 37.8 kB / 435.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.3099, allocations: 0 / 435.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001358/0.31, allocations: 71.28 kB / 435.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.31, allocations: 0 / 435.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003228/0.3103, allocations: 117.6 kB / 435.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.3104, allocations: 85.05 kB / 436 MB, free: 2.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.3105, allocations: 149.7 kB / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.3106, allocations: 29.7 kB / 436.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.289e-05/0.3106, allocations: 92.16 kB / 436.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.3107, allocations: 23.88 kB / 436.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.3107, allocations: 25.67 kB / 436.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3108, allocations: 326.8 kB / 436.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.648e-05/0.3109, allocations: 23.98 kB / 436.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.993e-05/0.311, allocations: 65.02 kB / 436.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.3111, allocations: 89.31 kB / 436.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.3112, allocations: 4 kB / 436.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002241/0.3114, allocations: 113.5 kB / 436.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3114, allocations: 8.156 kB / 437 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3114, allocations: 7.938 kB / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.3114, allocations: 3.938 kB / 437 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.291e-05/0.3115, allocations: 15.98 kB / 437 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3115, allocations: 0 / 437 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.786e-05/0.3116, allocations: 11.94 kB / 437 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.587e-06/0.3116, allocations: 4 kB / 437 MB, free: 1.406 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.000111/0.3117, allocations: 125.8 kB / 437.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.116e-05/0.3118, allocations: 57.64 kB / 437.2 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.716e-05/0.3118, allocations: 16.64 kB / 437.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3118, allocations: 3.938 kB / 437.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3118, allocations: 3.984 kB / 437.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3118, allocations: 0 / 437.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.3122, allocations: 313.5 kB / 437.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3122, allocations: 3.938 kB / 437.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.961e-05/0.3123, allocations: 15.98 kB / 437.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3123, allocations: 0 / 437.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.3123, allocations: 4 kB / 437.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3123, allocations: 4 kB / 437.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3123, allocations: 0 / 437.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002348/0.3125, allocations: 196.3 kB / 437.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.753e-05/0.3126, allocations: 23.88 kB / 437.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.3126, allocations: 8 kB / 437.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.828e-05/0.3127, allocations: 0 / 437.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.555e-05/0.3127, allocations: 11.98 kB / 437.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-06/0.3127, allocations: 4.125 kB / 437.8 MB, free: 0.543 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.648e-05/0.3128, allocations: 114.2 kB / 437.9 MB, free: 444 kB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3128, allocations: 96 / 437.9 MB, free: 444 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.000247/0.3131, allocations: 23.89 kB / 437.9 MB, free: 420 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.0006953/0.3137, allocations: 0.7678 MB / 438.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002133/0.314, allocations: 67.89 kB / 438.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.314, allocations: 0 / 438.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.828e-05/0.314, allocations: 23.88 kB / 438.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.3144, allocations: 33.56 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.3163, allocations: 1.549 MB / 440.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.3166, allocations: 0.6963 MB / 441 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.063e-05/0.3167, allocations: 8.422 kB / 441 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.006e-05/0.3167, allocations: 27.42 kB / 441.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3167, allocations: 0 / 441.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.3381, allocations: 2.215 MB / 443.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.17, allocations: 15.55 kB / 443.3 MB, free: 10.97 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.91316586296307]