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.001096/0.001097, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 63.8 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.104, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003366/0.1074, allocations: 2.032 MB / 360.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.1084, allocations: 0.6038 MB / 361.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.1085, allocations: 3.938 kB / 361.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.1087, allocations: 23.8 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001589/0.1088, allocations: 27.72 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.1091, allocations: 67.81 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00017/0.1093, allocations: 131.5 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.1095, allocations: 57.84 kB / 361.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.1096, allocations: 43.8 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.037e-05/0.1097, allocations: 63.69 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.1097, allocations: 15.94 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.063e-05/0.1097, allocations: 8 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.947e-05/0.1098, allocations: 35.84 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.9e-05/0.1099, allocations: 71.61 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.1101, allocations: 139.4 kB / 362.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1101, allocations: 4 kB / 362.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1101, allocations: 4 kB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1101, allocations: 0 / 362.2 MB, free: 9.984 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.0005917/0.1107, allocations: 446.9 kB / 362.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.1107, allocations: 12.03 kB / 362.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.63e-05/0.1108, allocations: 24.64 kB / 362.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.111, allocations: 216 kB / 362.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.1111, allocations: 16.38 kB / 362.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.1111, allocations: 16.31 kB / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004796/0.1116, allocations: 262.9 kB / 363.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.1116, allocations: 0 / 363.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.1116, allocations: 4 kB / 363.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1116, allocations: 4 kB / 363.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.1119, allocations: 87.88 kB / 363.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005785/0.1125, allocations: 0.5998 MB / 363.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003311/0.1128, allocations: 147.6 kB / 364 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.113, allocations: 90.77 kB / 364.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.113, allocations: 3.938 kB / 364.1 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.1131, allocations: 38.55 kB / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.1131, allocations: 0 / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004947/0.1136, allocations: 185.4 kB / 364.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/0.1136, allocations: 114.8 kB / 364.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.1138, allocations: 152.7 kB / 364.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.1138, allocations: 29.7 kB / 364.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.041e-05/0.1139, allocations: 116.4 kB / 364.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.1139, allocations: 35.62 kB / 364.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.1139, allocations: 37.7 kB / 364.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.1141, allocations: 322.9 kB / 365.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.1142, allocations: 39.97 kB / 365.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.1143, allocations: 137.2 kB / 365.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.1146, allocations: 185.5 kB / 365.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1146, allocations: 4 kB / 365.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000351/0.115, allocations: 201.1 kB / 365.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.115, allocations: 8 kB / 365.7 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.115, allocations: 4 kB / 365.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.115, allocations: 4 kB / 365.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.1152, allocations: 47.91 kB / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1152, allocations: 4 kB / 365.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1153, allocations: 24.2 kB / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1154, allocations: 12 kB / 365.8 MB, free: 6.02 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.000101/0.1155, allocations: 141.7 kB / 365.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.1156, allocations: 85.91 kB / 366 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.523e-05/0.1157, allocations: 24.7 kB / 366 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1157, allocations: 0 / 366 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.1157, allocations: 4 kB / 366 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1157, allocations: 96 / 366 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.116, allocations: 221.4 kB / 366.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.116, allocations: 0 / 366.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.1162, allocations: 35.98 kB / 366.3 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.1162, allocations: 4 kB / 366.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1162, allocations: 0 / 366.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.1162, allocations: 11.86 kB / 366.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1162, allocations: 4 kB / 366.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004739/0.1167, allocations: 383.6 kB / 366.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.909e-05/0.1168, allocations: 96.98 kB / 366.8 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.1168, allocations: 8 kB / 366.8 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.117, allocations: 7.984 kB / 366.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.117, allocations: 11.98 kB / 366.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.117, allocations: 8 kB / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.553e-05/0.1171, allocations: 123.3 kB / 366.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1171, allocations: 4.062 kB / 366.9 MB, free: 4.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.1174, allocations: 35.84 kB / 367 MB, free: 4.73 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 8.726e-05/0.1175, allocations: 95.25 kB / 367.1 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.1178, allocations: 124.6 kB / 367.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1178, allocations: 4.062 kB / 367.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.969e-05/0.1179, allocations: 27.92 kB / 367.2 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004684/0.1184, allocations: 63.92 kB / 367.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00064/0.1191, allocations: 422.1 kB / 367.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.1193, allocations: 0.7201 MB / 368.4 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.614e-05/0.1194, allocations: 13.42 kB / 368.4 MB, free: 3.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.1194, allocations: 15.44 kB / 368.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1194, allocations: 0 / 368.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of Templates: time 0.003861/0.1233, allocations: 1.338 MB / 369.8 MB, free: 1.891 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches