Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 99.53 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 199.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000252/0.0002524, allocations: 4 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.134, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003365/0.1375, allocations: 1.704 MB / 359.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.1387, allocations: 0.5069 MB / 360.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.1389, allocations: 8 kB / 360.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.545e-05/0.139, allocations: 7.922 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.1392, allocations: 31.88 kB / 360.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.1397, allocations: 47.39 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.14, allocations: 91.75 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/0.1402, allocations: 53.31 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.1404, allocations: 39.84 kB / 360.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.1405, allocations: 39.78 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.703e-05/0.1405, allocations: 4 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.556e-05/0.1405, allocations: 4 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.864e-05/0.1406, allocations: 15.92 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.268e-05/0.1407, allocations: 49.64 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.1408, allocations: 83.98 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1409, allocations: 3.938 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.322e-06/0.1409, allocations: 7.984 kB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1409, allocations: 0 / 360.9 MB, free: 11.07 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008609/0.1417, allocations: 414.9 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.441e-05/0.1418, allocations: 8.031 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1419, allocations: 46.55 kB / 361.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.883e-05/0.142, allocations: 15.81 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.1425, allocations: 201.4 kB / 361.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.1425, allocations: 16 kB / 361.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.1425, allocations: 15.95 kB / 361.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006925/0.1432, allocations: 226.6 kB / 361.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.1433, allocations: 7.891 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.1433, allocations: 8 kB / 361.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1433, allocations: 3.984 kB / 361.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.1436, allocations: 103.9 kB / 361.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.1447, allocations: 0.5921 MB / 362.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.1451, allocations: 152.1 kB / 362.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1452, allocations: 8 kB / 362.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.1452, allocations: 34.56 kB / 362.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.994e-06/0.1452, allocations: 0 / 362.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005571/0.1458, allocations: 197.7 kB / 362.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.1459, allocations: 114.8 kB / 363 MB, free: 8.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.146, allocations: 144.4 kB / 363.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.146, allocations: 25.7 kB / 363.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/0.1461, allocations: 116.1 kB / 363.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.562e-05/0.1461, allocations: 27.7 kB / 363.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/0.1462, allocations: 11.94 kB / 363.3 MB, free: 8.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1463, allocations: 318.8 kB / 363.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.1464, allocations: 44.34 kB / 363.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.1466, allocations: 138.5 kB / 363.8 MB, free: 7.793 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.1469, allocations: 157.1 kB / 364 MB, free: 7.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1469, allocations: 0 / 364 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003897/0.1473, allocations: 197.2 kB / 364.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.1474, allocations: 11.95 kB / 364.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.1474, allocations: 4 kB / 364.2 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1474, allocations: 4.469 kB / 364.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.1476, allocations: 51.91 kB / 364.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.1476, allocations: 11.94 kB / 364.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.1477, allocations: 23.83 kB / 364.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.1478, allocations: 12 kB / 364.3 MB, free: 7.305 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.0001497/0.1479, allocations: 133.7 kB / 364.4 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.1481, allocations: 85.5 kB / 364.5 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.896e-05/0.1482, allocations: 32.59 kB / 364.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1482, allocations: 0 / 364.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.1482, allocations: 4 kB / 364.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1482, allocations: 0 / 364.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003068/0.1485, allocations: 197.6 kB / 364.7 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1485, allocations: 4.234 kB / 364.7 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.1488, allocations: 47.95 kB / 364.8 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.1488, allocations: 4 kB / 364.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.1488, allocations: 0 / 364.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.1488, allocations: 11.95 kB / 364.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1488, allocations: 3.984 kB / 364.8 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007355/0.1496, allocations: 422.7 kB / 365.2 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.166e-05/0.1497, allocations: 92.94 kB / 365.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.1497, allocations: 4.094 kB / 365.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.1498, allocations: 15.92 kB / 365.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.1499, allocations: 8.062 kB / 365.3 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.1499, allocations: 4 kB / 365.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.395e-05/0.15, allocations: 105.8 kB / 365.4 MB, free: 6.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.15, allocations: 0 / 365.4 MB, free: 6.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003516/0.1504, allocations: 31.91 kB / 365.5 MB, free: 6 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.0008933/0.1513, allocations: 1.095 MB / 366.6 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003864/0.1517, allocations: 134.9 kB / 366.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1517, allocations: 0 / 366.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.1518, allocations: 35.91 kB / 366.7 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.1522, allocations: 69.16 kB / 366.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.1549, allocations: 3.299 MB / 370.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.1552, allocations: 0.7166 MB / 370.8 MB, free: 476 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.771e-05/0.1553, allocations: 17.08 kB / 370.8 MB, free: 460 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.602e-05/0.1554, allocations: 35.42 kB / 370.9 MB, free: 424 kB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1554, allocations: 4 kB / 370.9 MB, free: 420 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2211/0.3765, allocations: 2.573 MB / 373.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002727/0.3768, allocations: 232.9 kB / 373.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.205, allocations: 5.766 kB / 373.7 MB, free: 18.46 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat does not exist to compare? outputFormat=mat