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) 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001859/0.001859, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002096/0.002096, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.3 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 58.88 kB / 306.3 MB, free: 1 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1103, allocations: 50.55 MB / 356.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004189/0.1145, allocations: 2.089 MB / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1158, allocations: 0.5961 MB / 359.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.116, allocations: 7.938 kB / 359.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.1162, allocations: 11.92 kB / 359.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.1163, allocations: 23.78 kB / 359.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.1167, allocations: 59.89 kB / 359.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002074/0.1169, allocations: 127.5 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.1171, allocations: 53.52 kB / 359.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.1172, allocations: 39.8 kB / 359.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.1174, allocations: 59.7 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.1174, allocations: 11.98 kB / 359.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.526e-05/0.1174, allocations: 8 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.519e-05/0.1175, allocations: 31.84 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.412e-05/0.1176, allocations: 63.61 kB / 360 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.1178, allocations: 139.8 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1178, allocations: 0 / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1178, allocations: 3.938 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1178, allocations: 0 / 360.2 MB, free: 11.11 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008369/0.1187, allocations: 450.9 kB / 360.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1187, allocations: 8.031 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.1188, allocations: 16.75 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.1191, allocations: 223.3 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.1191, allocations: 12.38 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.626e-05/0.1191, allocations: 16.38 kB / 360.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006898/0.1198, allocations: 250.9 kB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.1199, allocations: 7.922 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.1199, allocations: 4 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.1199, allocations: 4 kB / 361.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.1202, allocations: 87.86 kB / 361.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007434/0.1209, allocations: 0.596 MB / 361.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000375/0.1213, allocations: 151.9 kB / 362 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.1215, allocations: 78.62 kB / 362 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.1215, allocations: 4 kB / 362 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.1216, allocations: 46.44 kB / 362.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.1216, allocations: 0 / 362.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005446/0.1221, allocations: 189.2 kB / 362.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.1222, allocations: 114.8 kB / 362.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.1224, allocations: 152.7 kB / 362.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.1224, allocations: 29.7 kB / 362.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.705e-05/0.1225, allocations: 120.5 kB / 362.7 MB, free: 8.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.1225, allocations: 31.58 kB / 362.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-05/0.1226, allocations: 33.72 kB / 362.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1228, allocations: 322.8 kB / 363.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.1229, allocations: 35.97 kB / 363.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.1231, allocations: 137.6 kB / 363.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.1234, allocations: 189.5 kB / 363.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.1234, allocations: 4 kB / 363.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003963/0.1238, allocations: 201 kB / 363.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.124, allocations: 4 kB / 363.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.124, allocations: 4.469 kB / 363.6 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.124, allocations: 15.94 kB / 363.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.1242, allocations: 35.98 kB / 363.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.1242, allocations: 11.92 kB / 363.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.1243, allocations: 19.94 kB / 363.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.1243, allocations: 8 kB / 363.7 MB, free: 7.16 MB / 302.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.000139/0.1244, allocations: 141.6 kB / 363.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.1246, allocations: 93.44 kB / 363.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.993e-05/0.1247, allocations: 20.94 kB / 364 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.1247, allocations: 8.469 kB / 364 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1247, allocations: 0 / 364 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1247, allocations: 3.984 kB / 364 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004214/0.1252, allocations: 217.4 kB / 364.2 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1252, allocations: 4 kB / 364.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.1254, allocations: 35.91 kB / 364.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1254, allocations: 4 kB / 364.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.1254, allocations: 4 kB / 364.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1254, allocations: 4 kB / 364.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1254, allocations: 0 / 364.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007431/0.1262, allocations: 396.3 kB / 364.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.585e-05/0.1262, allocations: 97.03 kB / 364.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.1263, allocations: 0 / 364.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.1264, allocations: 16.05 kB / 364.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.956e-05/0.1265, allocations: 7.984 kB / 364.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.1265, allocations: 4 kB / 364.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.673e-05/0.1266, allocations: 123.4 kB / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.793e-06/0.1266, allocations: 0 / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.1269, allocations: 35.78 kB / 364.9 MB, free: 5.871 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.00013/0.127, allocations: 107.7 kB / 365 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003216/0.1274, allocations: 123.7 kB / 365.1 MB, free: 5.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1274, allocations: 0 / 365.1 MB, free: 5.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.1275, allocations: 23.98 kB / 365.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005134/0.1281, allocations: 64.38 kB / 365.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000821/0.1289, allocations: 471.9 kB / 365.7 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004605/0.1294, allocations: 0.7243 MB / 366.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.199e-05/0.1294, allocations: 9.438 kB / 366.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.553e-05/0.1295, allocations: 15.44 kB / 366.4 MB, free: 4.273 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1295, allocations: 0 / 366.4 MB, free: 4.273 MB / 302.1 MB Notification: Performance of Templates: time 0.004646/0.1341, allocations: 1.215 MB / 367.6 MB, free: 3.094 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches