Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001799/0.001799, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.002133/0.002133, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.4/1.4, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 67.89 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09712/0.09891, allocations: 53.32 MB / 426.6 MB, free: 5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003235/0.1021, allocations: 2.033 MB / 428.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000975/0.1031, allocations: 0.5609 MB / 429.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.881e-05/0.1032, allocations: 7.938 kB / 429.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.1033, allocations: 11.86 kB / 429.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.1035, allocations: 39.7 kB / 429.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.1037, allocations: 47.88 kB / 429.3 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001706/0.1039, allocations: 123.6 kB / 429.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.104, allocations: 41.42 kB / 429.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.427e-05/0.1041, allocations: 59.78 kB / 429.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.157e-05/0.1042, allocations: 47.72 kB / 429.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.1042, allocations: 12 kB / 429.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.959e-05/0.1042, allocations: 12 kB / 429.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.193e-05/0.1042, allocations: 27.91 kB / 429.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.513e-05/0.1043, allocations: 63.66 kB / 429.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.1045, allocations: 123.4 kB / 429.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1045, allocations: 3.938 kB / 429.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1045, allocations: 0 / 429.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1045, allocations: 4 kB / 429.9 MB, free: 1.773 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006088/0.1051, allocations: 441.6 kB / 430.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.1052, allocations: 8.031 kB / 430.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.59e-05/0.1052, allocations: 50.73 kB / 430.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.584e-05/0.1052, allocations: 20.84 kB / 430.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.1055, allocations: 212.1 kB / 430.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1055, allocations: 8.375 kB / 430.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.1055, allocations: 12.38 kB / 430.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005021/0.106, allocations: 257.8 kB / 430.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1061, allocations: 0 / 430.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1061, allocations: 8 kB / 430.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.1061, allocations: 4 kB / 430.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002341/0.1063, allocations: 83.88 kB / 430.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006473/0.107, allocations: 0.5922 MB / 431.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003359/0.1073, allocations: 147.8 kB / 431.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.1074, allocations: 66.64 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.1075, allocations: 8 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1075, allocations: 34.47 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.1075, allocations: 0 / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004961/0.108, allocations: 189.3 kB / 432 MB, free: 15.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.1081, allocations: 119.1 kB / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.1082, allocations: 131.7 kB / 432.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1082, allocations: 33.64 kB / 432.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.879e-05/0.1083, allocations: 111.9 kB / 432.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.1083, allocations: 27.84 kB / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.1083, allocations: 29.72 kB / 432.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1085, allocations: 327.2 kB / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.1086, allocations: 39.97 kB / 432.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.1088, allocations: 133.6 kB / 432.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.109, allocations: 189.5 kB / 433.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.109, allocations: 11.88 kB / 433.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003511/0.1094, allocations: 189.6 kB / 433.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.1094, allocations: 8 kB / 433.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1094, allocations: 4 kB / 433.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.1094, allocations: 7.984 kB / 433.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1096, allocations: 47.92 kB / 433.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1096, allocations: 4 kB / 433.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.841e-05/0.1097, allocations: 15.94 kB / 433.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.1097, allocations: 12 kB / 433.4 MB, free: 13.85 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001033/0.1098, allocations: 141.7 kB / 433.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.11, allocations: 89.58 kB / 433.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.995e-05/0.11, allocations: 20.7 kB / 433.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.11, allocations: 0 / 433.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.11, allocations: 0 / 433.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.11, allocations: 4 kB / 433.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.1103, allocations: 205.5 kB / 433.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1103, allocations: 0 / 433.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.1105, allocations: 43.91 kB / 433.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.1105, allocations: 4 kB / 433.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.1105, allocations: 8 kB / 433.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1105, allocations: 0 / 433.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1105, allocations: 0 / 433.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005076/0.111, allocations: 388.5 kB / 434.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.1111, allocations: 92.98 kB / 434.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.1111, allocations: 8 kB / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.1112, allocations: 7.984 kB / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.1112, allocations: 0 / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.1113, allocations: 8 kB / 434.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.467e-05/0.1113, allocations: 97.09 kB / 434.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1113, allocations: 0 / 434.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1116, allocations: 28 kB / 434.5 MB, free: 12.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0007711/0.1124, allocations: 0.9194 MB / 435.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.1127, allocations: 123.8 kB / 435.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1127, allocations: 0 / 435.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.909e-05/0.1128, allocations: 24.92 kB / 435.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.1132, allocations: 60.5 kB / 435.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.1157, allocations: 2.053 MB / 437.7 MB, free: 9.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.116, allocations: 0.7123 MB / 438.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.154e-05/0.116, allocations: 17.08 kB / 438.4 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.709e-05/0.1161, allocations: 35.42 kB / 438.4 MB, free: 8.445 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1161, allocations: 0 / 438.4 MB, free: 8.445 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.143, allocations: 2.804 MB / 441.2 MB, free: 5.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.846/7.989, allocations: 8.938 kB / 441.2 MB, free: 5.781 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.51809852803126]