Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001713/0.001713, allocations: 121.3 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.00211/0.00211, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.383/1.383, 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 59.91 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.102, allocations: 53.33 MB / 426.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003488/0.1055, allocations: 2.052 MB / 428.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1066, allocations: 0.6076 MB / 429.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.1068, allocations: 4 kB / 429.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.1069, allocations: 19.8 kB / 429.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.1071, allocations: 31.72 kB / 429.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.1074, allocations: 79.78 kB / 429.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.1076, allocations: 123.6 kB / 429.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.1077, allocations: 41.88 kB / 429.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.31e-05/0.1078, allocations: 59.7 kB / 429.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.1079, allocations: 59.7 kB / 429.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.108, allocations: 12 kB / 429.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.999e-05/0.108, allocations: 8 kB / 429.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.294e-05/0.1081, allocations: 27.92 kB / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.497e-05/0.1081, allocations: 67.59 kB / 429.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002216/0.1084, allocations: 147.2 kB / 430 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1084, allocations: 3.984 kB / 430 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1084, allocations: 3.938 kB / 430 MB, free: 1.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1084, allocations: 0 / 430 MB, free: 1.66 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006514/0.109, allocations: 466.6 kB / 430.4 MB, free: 1.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1091, allocations: 12.03 kB / 430.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.835e-05/0.1091, allocations: 46.73 kB / 430.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.069e-05/0.1092, allocations: 20.8 kB / 430.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.1095, allocations: 216.1 kB / 430.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.1095, allocations: 16.38 kB / 430.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.1095, allocations: 12.38 kB / 430.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004971/0.11, allocations: 263.9 kB / 431 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.11, allocations: 0 / 431 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.11, allocations: 4 kB / 431 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.11, allocations: 4 kB / 431 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002429/0.1103, allocations: 87.88 kB / 431.1 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006885/0.111, allocations: 0.5922 MB / 431.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.1113, allocations: 147.8 kB / 431.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.1115, allocations: 70.64 kB / 431.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.1115, allocations: 7.984 kB / 431.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1115, allocations: 34.56 kB / 431.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.903e-06/0.1115, allocations: 0 / 431.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005427/0.1121, allocations: 189.4 kB / 432.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.1122, allocations: 114.8 kB / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.1123, allocations: 158.2 kB / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.1123, allocations: 29.7 kB / 432.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.1124, allocations: 116.4 kB / 432.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.1124, allocations: 27.78 kB / 432.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.698e-05/0.1125, allocations: 37.72 kB / 432.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1126, allocations: 326.9 kB / 432.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.1127, allocations: 32.34 kB / 433 MB, free: 14.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.1129, allocations: 144.5 kB / 433.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.1132, allocations: 185.5 kB / 433.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.1132, allocations: 3.938 kB / 433.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003541/0.1135, allocations: 197.3 kB / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1136, allocations: 8 kB / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1136, allocations: 4 kB / 433.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.1136, allocations: 4 kB / 433.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.1138, allocations: 51.91 kB / 433.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.1138, allocations: 4 kB / 433.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.955e-05/0.1139, allocations: 20.22 kB / 433.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.1139, allocations: 16 kB / 433.6 MB, free: 13.65 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.0001171/0.114, allocations: 137.7 kB / 433.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.1141, allocations: 93.53 kB / 433.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.819e-05/0.1142, allocations: 16.72 kB / 433.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1142, allocations: 240 / 433.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.1142, allocations: 4 kB / 433.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1142, allocations: 7.969 kB / 433.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002814/0.1145, allocations: 213.5 kB / 434 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1145, allocations: 0 / 434 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.1147, allocations: 47.91 kB / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1147, allocations: 0 / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.1147, allocations: 8 kB / 434.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1147, allocations: 0 / 434.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1147, allocations: 0 / 434.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005279/0.1152, allocations: 389 kB / 434.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.974e-05/0.1153, allocations: 105 kB / 434.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.1154, allocations: 8 kB / 434.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.1155, allocations: 7.984 kB / 434.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.1155, allocations: 7.938 kB / 434.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.1156, allocations: 8 kB / 434.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.1157, allocations: 116.1 kB / 434.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1157, allocations: 4.062 kB / 434.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.116, allocations: 35.94 kB / 434.8 MB, free: 12.36 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.0008294/0.1168, allocations: 0.9155 MB / 435.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.1171, allocations: 123.7 kB / 435.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1171, allocations: 4.938 kB / 435.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.072e-05/0.1172, allocations: 27.98 kB / 435.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.1177, allocations: 62.27 kB / 435.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.1203, allocations: 2.115 MB / 438 MB, free: 8.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.1206, allocations: 0.7201 MB / 438.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.314e-05/0.1207, allocations: 9.422 kB / 438.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.243e-05/0.1208, allocations: 43.42 kB / 438.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of SimCode: time 5.72e-07/0.1208, allocations: 0 / 438.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.1476, allocations: 2.998 MB / 441.8 MB, free: 5.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/7.951, allocations: 7.719 kB / 441.8 MB, free: 5.289 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.501383949071169]