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.001677/0.001677, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.001852/0.001852, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.386/1.386, allocations: 230.2 MB / 254.5 MB, free: 15.23 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 67.83 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1051, allocations: 53.31 MB / 426.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002783/0.1079, allocations: 1.665 MB / 428.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009936/0.1089, allocations: 0.5727 MB / 428.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.896e-05/0.109, allocations: 3.938 kB / 428.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.849e-05/0.109, allocations: 7.922 kB / 428.9 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.1092, allocations: 15.86 kB / 428.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003273/0.1095, allocations: 71.75 kB / 429 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.1096, allocations: 67.77 kB / 429.1 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.997e-05/0.1097, allocations: 16.22 kB / 429.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.1098, allocations: 35.86 kB / 429.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.415e-05/0.1099, allocations: 27.84 kB / 429.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.996e-05/0.1099, allocations: 8 kB / 429.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.889e-05/0.11, allocations: 8 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.163e-05/0.11, allocations: 27.91 kB / 429.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.89e-05/0.1101, allocations: 35.73 kB / 429.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.1102, allocations: 83.53 kB / 429.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1102, allocations: 7.938 kB / 429.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1102, allocations: 0 / 429.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.1102, allocations: 3.984 kB / 429.3 MB, free: 2.309 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.0005174/0.1107, allocations: 391 kB / 429.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1108, allocations: 12.03 kB / 429.7 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.924e-05/0.1108, allocations: 34.75 kB / 429.7 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.111, allocations: 24.83 kB / 429.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.1112, allocations: 215.5 kB / 430 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.1112, allocations: 4.375 kB / 430 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.1113, allocations: 7.938 kB / 430 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002941/0.1116, allocations: 142.6 kB / 430.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1116, allocations: 8 kB / 430.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.1116, allocations: 0 / 430.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.1116, allocations: 0 / 430.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001032/0.1117, allocations: 31.98 kB / 430.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.1121, allocations: 305.6 kB / 430.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002436/0.1124, allocations: 154.2 kB / 430.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.76e-05/0.1125, allocations: 37.8 kB / 430.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.1125, allocations: 3.984 kB / 430.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/0.1126, allocations: 63.3 kB / 430.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.1126, allocations: 4 kB / 430.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002996/0.1129, allocations: 117.5 kB / 430.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.113, allocations: 89.09 kB / 430.9 MB, free: 468 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.1131, allocations: 137.8 kB / 431.1 MB, free: 320 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.1131, allocations: 37.69 kB / 431.1 MB, free: 276 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.445e-05/0.1132, allocations: 88.08 kB / 431.2 MB, free: 184 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.1132, allocations: 15.91 kB / 431.2 MB, free: 168 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.1132, allocations: 37.66 kB / 431.2 MB, free: 124 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1134, allocations: 326.8 kB / 431.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.203e-05/0.1134, allocations: 19.98 kB / 431.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.402e-05/0.1135, allocations: 61.08 kB / 431.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.1137, allocations: 85.33 kB / 431.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1137, allocations: 0 / 431.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002022/0.1139, allocations: 125.6 kB / 431.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1139, allocations: 4 kB / 431.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1139, allocations: 0 / 431.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.1139, allocations: 4 kB / 431.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.73e-05/0.114, allocations: 15.88 kB / 431.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.114, allocations: 7.984 kB / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.167e-05/0.1141, allocations: 7.938 kB / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.1141, allocations: 4 kB / 431.9 MB, free: 15.42 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 0.0001027/0.1142, allocations: 129.2 kB / 432 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.919e-05/0.1142, allocations: 61.64 kB / 432.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.1143, allocations: 16.3 kB / 432.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.1143, allocations: 7.938 kB / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1143, allocations: 0 / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1143, allocations: 0 / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003589/0.1146, allocations: 338.5 kB / 432.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1146, allocations: 3.938 kB / 432.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.549e-05/0.1147, allocations: 15.92 kB / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1147, allocations: 4 kB / 432.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1147, allocations: 4 kB / 432.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1147, allocations: 0 / 432.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1147, allocations: 0 / 432.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.1149, allocations: 204.2 kB / 432.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.083e-05/0.115, allocations: 105.1 kB / 432.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.115, allocations: 3.938 kB / 432.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.862e-05/0.1151, allocations: 8 kB / 432.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.1151, allocations: 7.984 kB / 432.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-06/0.1152, allocations: 4.125 kB / 432.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.589e-05/0.1152, allocations: 107.3 kB / 432.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1152, allocations: 0 / 432.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002331/0.1155, allocations: 19.95 kB / 432.9 MB, free: 14.29 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.0006049/0.1161, allocations: 0.7679 MB / 433.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001784/0.1163, allocations: 63.84 kB / 433.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1163, allocations: 0 / 433.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.772e-05/0.1163, allocations: 19.98 kB / 433.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.1166, allocations: 36.25 kB / 433.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.1182, allocations: 1.543 MB / 435.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.1186, allocations: 0.7041 MB / 436 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.101e-05/0.1186, allocations: 12.61 kB / 436 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.243e-05/0.1187, allocations: 30.05 kB / 436.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1187, allocations: 0 / 436.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.1431, allocations: 2.053 MB / 438.1 MB, free: 9.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.607/7.75, allocations: 7.266 kB / 438.1 MB, free: 9.02 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.269589777104557]