Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009693/0.0009695, allocations: 93.7 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 181.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.0002612, allocations: 5.562 kB / 300.7 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1058, allocations: 50.42 MB / 351.1 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002007/0.1079, allocations: 1.666 MB / 352.8 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000791/0.1087, allocations: 0.5379 MB / 353.3 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.1088, allocations: 4 kB / 353.3 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.568e-05/0.1089, allocations: 15.86 kB / 353.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.109, allocations: 31.88 kB / 353.4 MB, free: 9.398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.1093, allocations: 59.86 kB / 353.4 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.1094, allocations: 79.84 kB / 353.5 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.1096, allocations: 49.61 kB / 353.6 MB, free: 9.215 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.989e-05/0.1097, allocations: 43.78 kB / 353.6 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.1097, allocations: 43.78 kB / 353.7 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.1097, allocations: 4 kB / 353.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.732e-05/0.1098, allocations: 4 kB / 353.7 MB, free: 9.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.791e-05/0.1098, allocations: 35.83 kB / 353.7 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.619e-05/0.1099, allocations: 45.64 kB / 353.7 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.11, allocations: 95.73 kB / 353.8 MB, free: 8.941 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.11, allocations: 4 kB / 353.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.11, allocations: 0 / 353.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.11, allocations: 4 kB / 353.8 MB, free: 8.934 MB / 286.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.0005289/0.1105, allocations: 426.8 kB / 354.3 MB, free: 8.469 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1106, allocations: 12.03 kB / 354.3 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.434e-05/0.1106, allocations: 23.67 kB / 354.3 MB, free: 8.434 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.1108, allocations: 216.4 kB / 354.5 MB, free: 8.184 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.1109, allocations: 8 kB / 354.5 MB, free: 8.176 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.1109, allocations: 16 kB / 354.5 MB, free: 8.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000686/0.1116, allocations: 267 kB / 354.8 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1116, allocations: 4 kB / 354.8 MB, free: 7.871 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.1116, allocations: 7.953 kB / 354.8 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.1117, allocations: 4 kB / 354.8 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.1119, allocations: 95.88 kB / 354.9 MB, free: 7.766 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006141/0.1125, allocations: 0.5997 MB / 355.5 MB, free: 7.094 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004532/0.113, allocations: 155.9 kB / 355.7 MB, free: 6.914 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.113, allocations: 0 / 355.7 MB, free: 6.914 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.1131, allocations: 46.5 kB / 355.7 MB, free: 6.859 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.1131, allocations: 0 / 355.7 MB, free: 6.859 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005807/0.1137, allocations: 193.6 kB / 355.9 MB, free: 6.664 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.1138, allocations: 118.7 kB / 356 MB, free: 6.523 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.1139, allocations: 150.2 kB / 356.2 MB, free: 6.367 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.1139, allocations: 29.7 kB / 356.2 MB, free: 6.332 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.779e-05/0.114, allocations: 116.4 kB / 356.3 MB, free: 6.215 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.1141, allocations: 27.69 kB / 356.3 MB, free: 6.188 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.1141, allocations: 4 kB / 356.3 MB, free: 6.184 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1142, allocations: 330.8 kB / 356.6 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.1143, allocations: 40.34 kB / 356.7 MB, free: 5.812 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.1145, allocations: 139.9 kB / 356.8 MB, free: 5.629 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.1147, allocations: 63.91 kB / 356.9 MB, free: 5.566 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1147, allocations: 4 kB / 356.9 MB, free: 5.562 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003655/0.1151, allocations: 205.5 kB / 357.1 MB, free: 5.355 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1151, allocations: 4 kB / 357.1 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.1152, allocations: 4 kB / 357.1 MB, free: 5.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.1152, allocations: 4 kB / 357.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.1154, allocations: 55.91 kB / 357.2 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.1154, allocations: 4 kB / 357.2 MB, free: 5.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.1155, allocations: 19.89 kB / 357.2 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.1155, allocations: 16.5 kB / 357.2 MB, free: 5.25 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.1156, allocations: 133.7 kB / 357.3 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.1158, allocations: 101.4 kB / 357.4 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.1159, allocations: 16.72 kB / 357.4 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1159, allocations: 4.234 kB / 357.4 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1159, allocations: 0 / 357.4 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.1159, allocations: 7.969 kB / 357.5 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.1162, allocations: 209.6 kB / 357.7 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.1163, allocations: 4 kB / 357.7 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.1164, allocations: 43.97 kB / 357.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1164, allocations: 0 / 357.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.1165, allocations: 4 kB / 357.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1165, allocations: 7.875 kB / 357.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1165, allocations: 0 / 357.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005729/0.1171, allocations: 420.7 kB / 358.1 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.154e-05/0.1172, allocations: 112.9 kB / 358.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.1172, allocations: 4 kB / 358.2 MB, free: 4.086 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.1173, allocations: 11.98 kB / 358.3 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.1174, allocations: 8 kB / 358.3 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.1174, allocations: 4 kB / 358.3 MB, free: 4.062 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.918e-05/0.1175, allocations: 128 kB / 358.4 MB, free: 3.938 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.403e-06/0.1175, allocations: 0 / 358.4 MB, free: 3.938 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.1178, allocations: 27.94 kB / 358.4 MB, free: 3.91 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.389e-05/0.1179, allocations: 107.2 kB / 358.5 MB, free: 3.797 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003652/0.1183, allocations: 132.6 kB / 358.7 MB, free: 3.668 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.1183, allocations: 0 / 358.7 MB, free: 3.668 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.516e-05/0.1184, allocations: 31.97 kB / 358.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.1188, allocations: 59.95 kB / 358.7 MB, free: 3.578 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006956/0.1195, allocations: 0.5056 MB / 359.2 MB, free: 3.035 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.1198, allocations: 0.7287 MB / 360 MB, free: 2.281 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.839e-05/0.1199, allocations: 9.438 kB / 360 MB, free: 2.27 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.349e-05/0.1199, allocations: 15.44 kB / 360 MB, free: 2.258 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1199, allocations: 0 / 360 MB, free: 2.258 MB / 286.1 MB Notification: Performance of Templates: time 0.003702/0.1236, allocations: 1.138 MB / 361.1 MB, free: 1.16 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches