Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.3 MB, free: 9.145 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 61.67 kB / 306.3 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1034, allocations: 50.53 MB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003921/0.1074, allocations: 2.123 MB / 358.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.1086, allocations: 0.5376 MB / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.1087, allocations: 0 / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.1089, allocations: 23.86 kB / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.141e-05/0.109, allocations: 11.86 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002921/0.1093, allocations: 51.89 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.1095, allocations: 115.6 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.1096, allocations: 65.28 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.284e-05/0.1097, allocations: 47.73 kB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.323e-05/0.1098, allocations: 59.7 kB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.1099, allocations: 4 kB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.1099, allocations: 8 kB / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.009e-05/0.1099, allocations: 23.91 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.11, allocations: 55.67 kB / 359.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.1102, allocations: 123.8 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1102, allocations: 0 / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1102, allocations: 0 / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1102, allocations: 8 kB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006403/0.1108, allocations: 431 kB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1109, allocations: 8.031 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.95e-05/0.1109, allocations: 16.75 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.1112, allocations: 200.1 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.1112, allocations: 12.38 kB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.1112, allocations: 12.38 kB / 360.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.1117, allocations: 238.8 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.1118, allocations: 0 / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.1118, allocations: 4 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1118, allocations: 8 kB / 360.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.1121, allocations: 83.86 kB / 361 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007307/0.1128, allocations: 0.5997 MB / 361.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.1132, allocations: 147.9 kB / 361.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.1133, allocations: 70.64 kB / 361.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.1134, allocations: 11.92 kB / 361.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.1134, allocations: 34.55 kB / 361.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.1134, allocations: 4 kB / 361.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005055/0.1139, allocations: 189.2 kB / 362.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/0.114, allocations: 110.8 kB / 362.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.1141, allocations: 130.2 kB / 362.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.1141, allocations: 29.7 kB / 362.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/0.1142, allocations: 112 kB / 362.4 MB, free: 8.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.1143, allocations: 31.69 kB / 362.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.289e-05/0.1143, allocations: 37.83 kB / 362.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1144, allocations: 326.8 kB / 362.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.1145, allocations: 35.97 kB / 362.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.1147, allocations: 149.6 kB / 363 MB, free: 7.734 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004613/0.1152, allocations: 270.7 kB / 363.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1152, allocations: 0 / 363.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003912/0.1156, allocations: 209 kB / 363.5 MB, free: 7.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1156, allocations: 8 kB / 363.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-06/0.1156, allocations: 4.469 kB / 363.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1157, allocations: 8 kB / 363.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.1158, allocations: 47.91 kB / 363.5 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.1158, allocations: 4 kB / 363.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.116, allocations: 19.89 kB / 363.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.116, allocations: 8 kB / 363.6 MB, free: 7.094 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001179/0.1161, allocations: 137.7 kB / 363.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.1163, allocations: 85.53 kB / 363.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.1163, allocations: 20.7 kB / 363.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1164, allocations: 4 kB / 363.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1164, allocations: 8 kB / 363.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1164, allocations: 480 / 363.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.1166, allocations: 209.5 kB / 364 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1167, allocations: 4 kB / 364 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.1169, allocations: 39.97 kB / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1169, allocations: 3.938 kB / 364.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.1169, allocations: 19.86 kB / 364.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.1169, allocations: 0 / 364.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1169, allocations: 0 / 364.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/0.1175, allocations: 382.2 kB / 364.5 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.1176, allocations: 96.88 kB / 364.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.1176, allocations: 4 kB / 364.6 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1177, allocations: 12.06 kB / 364.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.1178, allocations: 7.922 kB / 364.6 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1178, allocations: 4 kB / 364.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.523e-05/0.1179, allocations: 105.8 kB / 364.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1179, allocations: 0 / 364.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003286/0.1182, allocations: 24 kB / 364.7 MB, free: 5.852 MB / 302.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.0001093/0.1183, allocations: 107.2 kB / 364.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003391/0.1187, allocations: 124 kB / 364.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1187, allocations: 0 / 364.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1188, allocations: 28.91 kB / 365 MB, free: 5.586 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.1193, allocations: 72.05 kB / 365 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008946/0.1202, allocations: 459.6 kB / 365.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1205, allocations: 0.7164 MB / 366.2 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.755e-05/0.1206, allocations: 21.02 kB / 366.2 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.1206, allocations: 15.44 kB / 366.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1206, allocations: 0 / 366.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of Templates: time 0.003988/0.1246, allocations: 1.196 MB / 367.4 MB, free: 3.09 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches