Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008501/0.0008501, allocations: 98.5 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009845/0.0009846, allocations: 194.5 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.3 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002543, allocations: 4 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1248, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002664/0.1275, allocations: 1.681 MB / 360 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009549/0.1285, allocations: 0.538 MB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.802e-05/0.1286, allocations: 0 / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.57e-05/0.1287, allocations: 15.86 kB / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.1289, allocations: 15.84 kB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.1291, allocations: 59.81 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.1293, allocations: 107.6 kB / 360.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.1294, allocations: 56.89 kB / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.921e-05/0.1295, allocations: 35.84 kB / 360.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.257e-05/0.1296, allocations: 43.78 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.1296, allocations: 11.94 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.96e-05/0.1297, allocations: 4 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/0.1297, allocations: 19.86 kB / 360.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.199e-05/0.1298, allocations: 49.64 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.1299, allocations: 84.03 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1299, allocations: 0 / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1299, allocations: 3.938 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1299, allocations: 0 / 361 MB, free: 11.02 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005716/0.1305, allocations: 417.7 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1305, allocations: 12.03 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.138e-05/0.1306, allocations: 46.56 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.908e-05/0.1306, allocations: 15.81 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.1309, allocations: 210.7 kB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.1309, allocations: 12 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.1309, allocations: 15.95 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000501/0.1314, allocations: 242.9 kB / 362 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1315, allocations: 4 kB / 362 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1315, allocations: 3.984 kB / 362 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1315, allocations: 4 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.1318, allocations: 99.88 kB / 362.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006405/0.1324, allocations: 0.5959 MB / 362.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.1328, allocations: 155.9 kB / 362.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.133, allocations: 78.62 kB / 362.9 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.133, allocations: 7.984 kB / 362.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.133, allocations: 42.56 kB / 362.9 MB, free: 8.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.133, allocations: 0 / 362.9 MB, free: 8.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005248/0.1336, allocations: 193.3 kB / 363.1 MB, free: 8.656 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.665e-05/0.1337, allocations: 118.9 kB / 363.2 MB, free: 8.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.1338, allocations: 128.6 kB / 363.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.1338, allocations: 29.7 kB / 363.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.1339, allocations: 111.9 kB / 363.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.1339, allocations: 23.73 kB / 363.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-06/0.1339, allocations: 8 kB / 363.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.134, allocations: 318.8 kB / 363.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.1342, allocations: 52.66 kB / 363.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.1343, allocations: 141.5 kB / 364 MB, free: 7.645 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.1345, allocations: 59.92 kB / 364.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1345, allocations: 0 / 364.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003595/0.1348, allocations: 209.5 kB / 364.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1349, allocations: 12 kB / 364.3 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1349, allocations: 7.953 kB / 364.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1349, allocations: 4 kB / 364.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.1351, allocations: 43.92 kB / 364.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.1351, allocations: 15.92 kB / 364.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.1352, allocations: 23.84 kB / 364.4 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.1352, allocations: 12 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 9.926e-05/0.1353, allocations: 137.7 kB / 364.6 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.1355, allocations: 85.53 kB / 364.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.012e-05/0.1356, allocations: 16.72 kB / 364.7 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.1356, allocations: 3.953 kB / 364.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1356, allocations: 0 / 364.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1356, allocations: 4 kB / 364.7 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.1359, allocations: 197.6 kB / 364.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1359, allocations: 0 / 364.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.136, allocations: 43.97 kB / 364.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1361, allocations: 0 / 364.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.1361, allocations: 4 kB / 364.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.37e-05/0.1361, allocations: 4 kB / 364.9 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1361, allocations: 3.953 kB / 364.9 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005036/0.1366, allocations: 399.5 kB / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.1367, allocations: 88.98 kB / 365.4 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.1367, allocations: 8 kB / 365.4 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.1369, allocations: 20.03 kB / 365.4 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.1369, allocations: 7.953 kB / 365.4 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.1369, allocations: 7.984 kB / 365.4 MB, free: 6.137 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.776e-05/0.137, allocations: 102.1 kB / 365.5 MB, free: 6.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.137, allocations: 0 / 365.5 MB, free: 6.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003152/0.1373, allocations: 27.91 kB / 365.6 MB, free: 6.012 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.0007299/0.138, allocations: 0.9312 MB / 366.5 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000316/0.1384, allocations: 132.6 kB / 366.6 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1384, allocations: 7.938 kB / 366.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.701e-05/0.1385, allocations: 35.91 kB / 366.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.139, allocations: 47.97 kB / 366.7 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.1405, allocations: 1.017 MB / 367.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.1408, allocations: 0.7164 MB / 368.4 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.994e-05/0.1408, allocations: 5.094 kB / 368.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.773e-05/0.1409, allocations: 39.48 kB / 368.5 MB, free: 2.926 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1409, allocations: 0 / 368.5 MB, free: 2.926 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01252/0.1534, allocations: 2.4 MB / 370.9 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.1537, allocations: 224.5 kB / 371.1 MB, free: 484 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.837/1.991, allocations: 3.938 kB / 371.1 MB, free: 480 kB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat