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.001564/0.001564, allocations: 124.2 kB / 18.5 MB, free: 4.578 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.00196/0.00196, allocations: 214.2 kB / 21.45 MB, free: 1.629 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.509/1.509, allocations: 230.5 MB / 254.7 MB, free: 15.04 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.001951/0.001951, allocations: 59.91 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09718/0.09913, allocations: 53.37 MB / 427.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003042/0.1022, allocations: 1.65 MB / 428.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.1033, allocations: 0.5843 MB / 429.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1034, allocations: 3.938 kB / 429.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.875e-05/0.1035, allocations: 3.938 kB / 429.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.1036, allocations: 23.84 kB / 429.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.104, allocations: 59.81 kB / 429.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.1041, allocations: 67.78 kB / 429.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.1042, allocations: 24.14 kB / 429.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.1043, allocations: 31.86 kB / 429.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.151e-05/0.1044, allocations: 35.83 kB / 429.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.1044, allocations: 8 kB / 429.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.495e-05/0.1044, allocations: 12 kB / 429.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.1045, allocations: 23.86 kB / 429.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.132e-05/0.1046, allocations: 35.75 kB / 429.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001895/0.1047, allocations: 87.45 kB / 429.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1047, allocations: 0 / 429.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1047, allocations: 0 / 429.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1048, allocations: 0 / 429.7 MB, free: 1.953 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.0005499/0.1053, allocations: 403 kB / 430.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1053, allocations: 12.03 kB / 430.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.32e-05/0.1054, allocations: 8.172 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.1054, allocations: 34.75 kB / 430.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.1056, allocations: 24.83 kB / 430.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.1058, allocations: 200.7 kB / 430.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.1058, allocations: 8.125 kB / 430.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.1058, allocations: 8 kB / 430.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.1062, allocations: 142.5 kB / 430.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1062, allocations: 0 / 430.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.1062, allocations: 8 kB / 430.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1062, allocations: 0 / 430.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.1063, allocations: 31.95 kB / 430.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004737/0.1068, allocations: 313.6 kB / 430.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.107, allocations: 150.2 kB / 431 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.11e-05/0.1071, allocations: 41.8 kB / 431.1 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1071, allocations: 0 / 431.1 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.1072, allocations: 67.34 kB / 431.1 MB, free: 320 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.462e-06/0.1072, allocations: 0 / 431.1 MB, free: 320 kB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003136/0.1075, allocations: 117.5 kB / 431.3 MB, free: 196 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.1076, allocations: 81.11 kB / 431.3 MB, free: 96 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.1078, allocations: 156.7 kB / 431.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.1078, allocations: 25.7 kB / 431.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.1078, allocations: 96.12 kB / 431.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.1079, allocations: 15.91 kB / 431.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-05/0.1079, allocations: 29.66 kB / 431.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1081, allocations: 318.8 kB / 432 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.833e-05/0.1082, allocations: 23.98 kB / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.878e-05/0.1082, allocations: 69.31 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.1084, allocations: 85.08 kB / 432.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1084, allocations: 0 / 432.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002461/0.1086, allocations: 109.5 kB / 432.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1087, allocations: 8 kB / 432.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1087, allocations: 3.984 kB / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.1087, allocations: 7.938 kB / 432.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.926e-05/0.1088, allocations: 20.03 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1088, allocations: 4 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.071e-05/0.1088, allocations: 15.92 kB / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.1088, allocations: 4 kB / 432.3 MB, free: 15.05 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.871e-05/0.1089, allocations: 117.8 kB / 432.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.575e-05/0.109, allocations: 57.58 kB / 432.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.109, allocations: 12.31 kB / 432.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.1091, allocations: 7.938 kB / 432.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1091, allocations: 0 / 432.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1091, allocations: 7.984 kB / 432.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003963/0.1095, allocations: 350.8 kB / 432.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.1095, allocations: 3.938 kB / 432.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.059e-05/0.1095, allocations: 11.94 kB / 432.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1095, allocations: 3.984 kB / 432.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.1095, allocations: 3.984 kB / 432.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1095, allocations: 7.938 kB / 432.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1095, allocations: 0 / 432.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.1098, allocations: 196.4 kB / 433.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.505e-05/0.1099, allocations: 101 kB / 433.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.1099, allocations: 11.98 kB / 433.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.331e-05/0.11, allocations: 4 kB / 433.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.731e-05/0.11, allocations: 0 / 433.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.11, allocations: 4 kB / 433.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.06e-05/0.1101, allocations: 111.2 kB / 433.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1101, allocations: 0 / 433.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002432/0.1103, allocations: 19.95 kB / 433.3 MB, free: 13.92 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.0006242/0.1109, allocations: 0.768 MB / 434.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002013/0.1111, allocations: 71.84 kB / 434.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1111, allocations: 4 kB / 434.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.161e-05/0.1112, allocations: 15.98 kB / 434.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.1115, allocations: 35.19 kB / 434.2 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.1132, allocations: 1.543 MB / 435.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.1135, allocations: 0.7002 MB / 436.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.894e-05/0.1135, allocations: 8.422 kB / 436.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.1135, allocations: 19.44 kB / 436.5 MB, free: 10.58 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1136, allocations: 0 / 436.5 MB, free: 10.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.1314, allocations: 2.101 MB / 438.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.095/8.226, allocations: 6.531 kB / 438.6 MB, free: 8.637 MB / 366.1 MB " [Timeout remaining time 652] (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: 11.096318794006947]