Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 93.73 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 182.5 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002806/0.0002814, allocations: 7.844 kB / 300.8 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1322, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002653/0.1349, allocations: 1.631 MB / 352.9 MB, free: 10 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009717/0.1359, allocations: 495 kB / 353.3 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.805e-05/0.136, allocations: 0 / 353.3 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.09e-05/0.1361, allocations: 15.86 kB / 353.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.1362, allocations: 23.89 kB / 353.4 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.1366, allocations: 55.81 kB / 353.4 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.1368, allocations: 75.84 kB / 353.5 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1369, allocations: 52.88 kB / 353.6 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.173e-05/0.137, allocations: 35.84 kB / 353.6 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.794e-05/0.1371, allocations: 43.78 kB / 353.6 MB, free: 9.215 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.383e-05/0.1371, allocations: 4 kB / 353.6 MB, free: 9.211 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.063e-05/0.1372, allocations: 8 kB / 353.6 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.543e-05/0.1372, allocations: 15.92 kB / 353.7 MB, free: 9.188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.839e-05/0.1373, allocations: 45.64 kB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.1374, allocations: 79.81 kB / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1374, allocations: 0 / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1374, allocations: 0 / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1374, allocations: 0 / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006833/0.1381, allocations: 422.9 kB / 354.2 MB, free: 8.598 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/0.1382, allocations: 8.031 kB / 354.2 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.912e-05/0.1383, allocations: 50.5 kB / 354.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.184e-05/0.1383, allocations: 19.75 kB / 354.3 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.1385, allocations: 191 kB / 354.5 MB, free: 8.285 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.1386, allocations: 8 kB / 354.5 MB, free: 8.277 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.1386, allocations: 12 kB / 354.5 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.1391, allocations: 238.5 kB / 354.7 MB, free: 8.008 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.1391, allocations: 11.86 kB / 354.7 MB, free: 7.996 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.1392, allocations: 3.953 kB / 354.7 MB, free: 7.992 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.1392, allocations: 8 kB / 354.7 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/0.1395, allocations: 95.88 kB / 354.8 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007526/0.1402, allocations: 0.5882 MB / 355.4 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002873/0.1405, allocations: 151.9 kB / 355.6 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.1406, allocations: 4.125 kB / 355.6 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.1406, allocations: 42.56 kB / 355.6 MB, free: 7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.1406, allocations: 0 / 355.6 MB, free: 7 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005539/0.1412, allocations: 189.9 kB / 355.8 MB, free: 6.809 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.313e-05/0.1413, allocations: 118.9 kB / 355.9 MB, free: 6.668 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1414, allocations: 132.2 kB / 356 MB, free: 6.527 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.1414, allocations: 29.7 kB / 356.1 MB, free: 6.492 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.743e-05/0.1415, allocations: 108 kB / 356.2 MB, free: 6.383 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.1415, allocations: 31.64 kB / 356.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-06/0.1416, allocations: 4 kB / 356.2 MB, free: 6.348 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1417, allocations: 326.8 kB / 356.5 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1418, allocations: 43.97 kB / 356.6 MB, free: 5.977 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.142, allocations: 132.8 kB / 356.7 MB, free: 5.801 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.1422, allocations: 59.97 kB / 356.8 MB, free: 5.742 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1422, allocations: 3.938 kB / 356.8 MB, free: 5.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003644/0.1426, allocations: 193.2 kB / 357 MB, free: 5.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.1426, allocations: 8.438 kB / 357 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1426, allocations: 8 kB / 357 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.1426, allocations: 4 kB / 357 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.1428, allocations: 47.92 kB / 357 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.1429, allocations: 7.938 kB / 357 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.143, allocations: 23.89 kB / 357.1 MB, free: 5.445 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.143, allocations: 8 kB / 357.1 MB, free: 5.438 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001339/0.1431, allocations: 129.7 kB / 357.2 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.1433, allocations: 85.53 kB / 357.3 MB, free: 5.211 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.315e-05/0.1434, allocations: 16.72 kB / 357.3 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1434, allocations: 0 / 357.3 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.1434, allocations: 7.953 kB / 357.3 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.1434, allocations: 7.984 kB / 357.3 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.1437, allocations: 201.5 kB / 357.5 MB, free: 4.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1437, allocations: 3.938 kB / 357.5 MB, free: 4.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.1439, allocations: 35.97 kB / 357.5 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1439, allocations: 8 kB / 357.5 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.144, allocations: 4 kB / 357.5 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.144, allocations: 0 / 357.5 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.144, allocations: 4 kB / 357.6 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005904/0.1446, allocations: 413.1 kB / 358 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.1446, allocations: 89.02 kB / 358 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.1447, allocations: 11.89 kB / 358.1 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.1448, allocations: 16.05 kB / 358.1 MB, free: 4.309 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.361e-05/0.1449, allocations: 8 kB / 358.1 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.1449, allocations: 0 / 358.1 MB, free: 4.301 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.934e-05/0.145, allocations: 97.66 kB / 358.2 MB, free: 4.207 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.145, allocations: 0 / 358.2 MB, free: 4.207 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00032/0.1453, allocations: 27.94 kB / 358.2 MB, free: 4.18 MB / 286.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 (14): * Single equations (assignments): 14 * 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.0009893/0.1463, allocations: 1.088 MB / 359.3 MB, free: 3.055 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003316/0.1466, allocations: 128.6 kB / 359.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1467, allocations: 0 / 359.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.1468, allocations: 35.91 kB / 359.4 MB, free: 2.895 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004198/0.1472, allocations: 44.02 kB / 359.5 MB, free: 2.852 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.1498, allocations: 3.094 MB / 362.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.1501, allocations: 0.7202 MB / 363.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.356e-05/0.1501, allocations: 4.656 kB / 363.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.156e-05/0.1502, allocations: 43.36 kB / 363.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1502, allocations: 0 / 363.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01593/0.1662, allocations: 2.357 MB / 365.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002526/0.1665, allocations: 236 kB / 365.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/1.924, allocations: 0 / 365.9 MB, free: 12.46 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat