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.001101/0.001101, allocations: 107.6 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 60.34 kB / 306.4 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1045, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004069/0.1086, allocations: 2.085 MB / 359.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1098, allocations: 0.5999 MB / 359.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.1101, allocations: 4 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.1102, allocations: 19.86 kB / 359.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.1105, allocations: 19.84 kB / 359.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.111, allocations: 63.89 kB / 359.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.1112, allocations: 123.6 kB / 359.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1114, allocations: 61.83 kB / 359.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.1116, allocations: 51.73 kB / 360 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.1117, allocations: 63.69 kB / 360.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.1118, allocations: 12 kB / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.129e-05/0.1118, allocations: 8 kB / 360.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.25e-05/0.1119, allocations: 31.86 kB / 360.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.586e-05/0.112, allocations: 67.59 kB / 360.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.1123, allocations: 143.8 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1123, allocations: 0 / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1123, allocations: 0 / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.809e-06/0.1123, allocations: 4 kB / 360.3 MB, free: 11.05 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.0008326/0.1132, allocations: 454.8 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.1132, allocations: 8.031 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.428e-05/0.1133, allocations: 24.59 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.1135, allocations: 212 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.1136, allocations: 12.38 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.1136, allocations: 16.31 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.1142, allocations: 249.6 kB / 361.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1142, allocations: 4 kB / 361.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.1142, allocations: 8 kB / 361.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.1142, allocations: 4 kB / 361.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.1145, allocations: 91.86 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006827/0.1152, allocations: 0.5998 MB / 362 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.1155, allocations: 147.7 kB / 362.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.1157, allocations: 82.77 kB / 362.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.1158, allocations: 7.984 kB / 362.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.1158, allocations: 30.56 kB / 362.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.1158, allocations: 3.938 kB / 362.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005203/0.1163, allocations: 189.3 kB / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.337e-05/0.1164, allocations: 110.8 kB / 362.5 MB, free: 8.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.1166, allocations: 152.7 kB / 362.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1166, allocations: 33.69 kB / 362.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.591e-05/0.1167, allocations: 116.4 kB / 362.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.161e-05/0.1167, allocations: 27.66 kB / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.196e-05/0.1168, allocations: 37.7 kB / 362.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1169, allocations: 331 kB / 363.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.1171, allocations: 35.97 kB / 363.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.1173, allocations: 140.8 kB / 363.4 MB, free: 7.633 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.1176, allocations: 185.5 kB / 363.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.1176, allocations: 4 kB / 363.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000374/0.118, allocations: 201 kB / 363.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.118, allocations: 4 kB / 363.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.118, allocations: 4 kB / 363.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.1181, allocations: 4 kB / 363.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.1182, allocations: 51.91 kB / 363.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.1182, allocations: 4 kB / 363.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.1183, allocations: 28.3 kB / 363.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.1184, allocations: 12 kB / 363.9 MB, free: 7.09 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.0001139/0.1185, allocations: 133.7 kB / 364 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.1186, allocations: 93.52 kB / 364.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.063e-05/0.1187, allocations: 20.72 kB / 364.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1187, allocations: 4 kB / 364.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1188, allocations: 480 / 364.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1188, allocations: 4.219 kB / 364.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.119, allocations: 217.4 kB / 364.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.119, allocations: 4 kB / 364.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.1192, allocations: 35.97 kB / 364.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.1192, allocations: 11.92 kB / 364.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.1193, allocations: 7.938 kB / 364.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.1193, allocations: 0 / 364.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1193, allocations: 4 kB / 364.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.1198, allocations: 383.3 kB / 364.8 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.27e-05/0.1199, allocations: 101 kB / 364.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.1199, allocations: 4 kB / 364.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.12, allocations: 7.984 kB / 364.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.1201, allocations: 8 kB / 364.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.1201, allocations: 7.938 kB / 364.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.192e-05/0.1202, allocations: 123.5 kB / 365 MB, free: 5.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1202, allocations: 4 kB / 365 MB, free: 5.836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000314/0.1205, allocations: 31.84 kB / 365.1 MB, free: 5.805 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.0001033/0.1206, allocations: 99.77 kB / 365.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000326/0.121, allocations: 132.6 kB / 365.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.121, allocations: 0 / 365.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.897e-05/0.1211, allocations: 31.91 kB / 365.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.1216, allocations: 67.62 kB / 365.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007168/0.1223, allocations: 474.1 kB / 365.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.1226, allocations: 0.7201 MB / 366.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.689e-05/0.1227, allocations: 13.41 kB / 366.6 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.19e-05/0.1227, allocations: 19.44 kB / 366.6 MB, free: 4.191 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1227, allocations: 4 kB / 366.6 MB, free: 4.188 MB / 302.1 MB Notification: Performance of Templates: time 0.003689/0.1264, allocations: 1.278 MB / 367.9 MB, free: 2.953 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.0.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