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.001288/0.001288, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.5 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 63.7 kB / 307.6 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1071, allocations: 50.53 MB / 358.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003755/0.1109, allocations: 2.031 MB / 360.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.112, allocations: 0.6038 MB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.1122, allocations: 7.938 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1123, allocations: 15.8 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.1125, allocations: 39.7 kB / 360.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.1128, allocations: 71.8 kB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.113, allocations: 123.6 kB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.1132, allocations: 57.84 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.655e-05/0.1133, allocations: 51.72 kB / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.1134, allocations: 59.7 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/0.1135, allocations: 12 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.603e-05/0.1135, allocations: 16 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.335e-05/0.1136, allocations: 31.84 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.669e-05/0.1137, allocations: 67.61 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.1139, allocations: 131.8 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1139, allocations: 0 / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.1139, allocations: 3.984 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1139, allocations: 0 / 361.5 MB, free: 10.75 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.0007559/0.1147, allocations: 462.8 kB / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.1147, allocations: 12.03 kB / 361.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.298e-05/0.1148, allocations: 24.66 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.1151, allocations: 219.2 kB / 362.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1151, allocations: 8.375 kB / 362.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.766e-05/0.1151, allocations: 12.38 kB / 362.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.1157, allocations: 262.9 kB / 362.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1157, allocations: 3.938 kB / 362.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.1157, allocations: 4 kB / 362.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1158, allocations: 7.938 kB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002658/0.116, allocations: 87.88 kB / 362.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007333/0.1168, allocations: 0.5998 MB / 363.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.1172, allocations: 151.9 kB / 363.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.1173, allocations: 74.64 kB / 363.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.1174, allocations: 4 kB / 363.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.1174, allocations: 42.48 kB / 363.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.1174, allocations: 0 / 363.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005547/0.118, allocations: 185.3 kB / 363.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.443e-05/0.1181, allocations: 110.8 kB / 363.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.1182, allocations: 152.8 kB / 363.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.1183, allocations: 37.7 kB / 363.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.669e-05/0.1184, allocations: 112.4 kB / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.067e-05/0.1184, allocations: 27.64 kB / 364 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.892e-05/0.1185, allocations: 37.7 kB / 364.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1186, allocations: 326.8 kB / 364.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.1188, allocations: 35.97 kB / 364.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.119, allocations: 137.6 kB / 364.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.1193, allocations: 185.5 kB / 364.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/0.1193, allocations: 0 / 364.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003808/0.1197, allocations: 201 kB / 364.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.1197, allocations: 11.44 kB / 365 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.1197, allocations: 8 kB / 365 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.1198, allocations: 4 kB / 365 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.1199, allocations: 47.91 kB / 365 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.1199, allocations: 11.94 kB / 365 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.1201, allocations: 19.83 kB / 365 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.1201, allocations: 12 kB / 365.1 MB, free: 6.785 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.0001229/0.1202, allocations: 134 kB / 365.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001744/0.1204, allocations: 93.7 kB / 365.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.1205, allocations: 28.7 kB / 365.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.1206, allocations: 7.984 kB / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1206, allocations: 0 / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1206, allocations: 0 / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.1209, allocations: 221.4 kB / 365.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1209, allocations: 0 / 365.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.1211, allocations: 35.98 kB / 365.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1211, allocations: 0 / 365.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.1211, allocations: 3.984 kB / 365.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1211, allocations: 4 kB / 365.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1211, allocations: 4 kB / 365.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005892/0.1217, allocations: 386 kB / 366 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.1218, allocations: 101 kB / 366.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.1219, allocations: 12.06 kB / 366.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.122, allocations: 7.984 kB / 366.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.534e-05/0.1221, allocations: 0 / 366.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.1221, allocations: 8 kB / 366.1 MB, free: 5.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.1222, allocations: 119.4 kB / 366.2 MB, free: 5.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1222, allocations: 0 / 366.2 MB, free: 5.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.1225, allocations: 35.84 kB / 366.2 MB, free: 5.508 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.0001341/0.1227, allocations: 107.2 kB / 366.3 MB, free: 5.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003413/0.123, allocations: 123.8 kB / 366.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.123, allocations: 0 / 366.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.977e-05/0.1231, allocations: 32.91 kB / 366.5 MB, free: 5.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.1237, allocations: 68.31 kB / 366.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000846/0.1245, allocations: 451.7 kB / 367 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.1249, allocations: 0.7239 MB / 367.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.483e-05/0.125, allocations: 19.44 kB / 367.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.125, allocations: 4 kB / 367.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of Templates: time 0.003606/0.1286, allocations: 1.611 MB / 369.4 MB, free: 2.309 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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