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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000983/0.000983, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 206.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003895, allocations: 8 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.111, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002223/0.1133, allocations: 1.677 MB / 359.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009337/0.1142, allocations: 0.5731 MB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1144, allocations: 7.938 kB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.428e-05/0.1144, allocations: 11.92 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.1146, allocations: 27.88 kB / 360.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.1149, allocations: 63.81 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.115, allocations: 83.83 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.1152, allocations: 53.36 kB / 360.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.157e-05/0.1152, allocations: 39.8 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.291e-05/0.1153, allocations: 47.77 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.922e-05/0.1153, allocations: 4 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.062e-05/0.1154, allocations: 4 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.267e-05/0.1154, allocations: 23.92 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.064e-05/0.1155, allocations: 49.58 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.1156, allocations: 96 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1156, allocations: 4 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1156, allocations: 0 / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1156, allocations: 0 / 361 MB, free: 11.01 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.0006069/0.1162, allocations: 438.7 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.1163, allocations: 12.03 kB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.305e-05/0.1164, allocations: 42.56 kB / 361.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.1164, allocations: 27.64 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.1166, allocations: 218.2 kB / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.1167, allocations: 8 kB / 361.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/0.1167, allocations: 19.95 kB / 361.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00053/0.1172, allocations: 247.1 kB / 361.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.1173, allocations: 0 / 361.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.1173, allocations: 4 kB / 362 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1173, allocations: 11.92 kB / 362 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.1176, allocations: 102.2 kB / 362.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.1183, allocations: 0.5959 MB / 362.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.1186, allocations: 147.9 kB / 362.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.1187, allocations: 16.06 kB / 362.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.1187, allocations: 34.56 kB / 362.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.1187, allocations: 0 / 362.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005294/0.1193, allocations: 201.3 kB / 363 MB, free: 8.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.985e-05/0.1193, allocations: 114.8 kB / 363.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.1195, allocations: 156.6 kB / 363.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1195, allocations: 29.69 kB / 363.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.611e-05/0.1196, allocations: 116.5 kB / 363.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.1196, allocations: 27.78 kB / 363.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-06/0.1196, allocations: 4 kB / 363.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1198, allocations: 322.8 kB / 363.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.1199, allocations: 40.34 kB / 363.8 MB, free: 7.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1201, allocations: 144.5 kB / 364 MB, free: 7.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.1202, allocations: 71.84 kB / 364.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.1202, allocations: 4 kB / 364.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003625/0.1206, allocations: 197.2 kB / 364.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1206, allocations: 4 kB / 364.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1206, allocations: 7.938 kB / 364.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.1207, allocations: 12.33 kB / 364.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.1208, allocations: 47.97 kB / 364.3 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.764e-05/0.1209, allocations: 8.406 kB / 364.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.121, allocations: 31.83 kB / 364.4 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.121, allocations: 11.94 kB / 364.4 MB, free: 7.258 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.1211, allocations: 133.7 kB / 364.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.1213, allocations: 93.44 kB / 364.6 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.416e-05/0.1214, allocations: 20.7 kB / 364.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1214, allocations: 4 kB / 364.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1214, allocations: 3.953 kB / 364.6 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1214, allocations: 4 kB / 364.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002861/0.1217, allocations: 209.6 kB / 364.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1217, allocations: 4 kB / 364.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.1219, allocations: 31.98 kB / 364.9 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1219, allocations: 0 / 364.9 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.122, allocations: 8.234 kB / 364.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.122, allocations: 3.984 kB / 364.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.122, allocations: 4 kB / 364.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005966/0.1226, allocations: 426.7 kB / 365.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.747e-05/0.1227, allocations: 104.9 kB / 365.4 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.1227, allocations: 7.953 kB / 365.4 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1229, allocations: 8 kB / 365.4 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.1229, allocations: 7.984 kB / 365.4 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1229, allocations: 8 kB / 365.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.165e-05/0.123, allocations: 119.5 kB / 365.5 MB, free: 5.961 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.123, allocations: 0 / 365.5 MB, free: 5.961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003286/0.1233, allocations: 31.94 kB / 365.6 MB, free: 5.93 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 (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 0.0008573/0.1242, allocations: 1.095 MB / 366.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003313/0.1246, allocations: 136.7 kB / 366.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1246, allocations: 0 / 366.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.1247, allocations: 35.98 kB / 366.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004123/0.1251, allocations: 59.97 kB / 366.9 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.1276, allocations: 3.317 MB / 370.2 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.128, allocations: 0.7206 MB / 370.9 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.778e-05/0.128, allocations: 9.422 kB / 370.9 MB, free: 380 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.674e-05/0.1281, allocations: 43.42 kB / 371 MB, free: 336 kB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1281, allocations: 0 / 371 MB, free: 336 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1961/0.3242, allocations: 2.575 MB / 373.6 MB, free: 18.94 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/0.3245, allocations: 222 kB / 373.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.2, allocations: 1.25 kB / 373.8 MB, free: 18.7 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat