Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001266/0.001267, allocations: 91.48 kB / 16.3 MB, free: 6.457 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.001367/0.001367, allocations: 180.6 kB / 17.2 MB, free: 6.34 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.505/1.505, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002875, allocations: 6.766 kB / 300.8 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1342, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00271/0.137, allocations: 1.646 MB / 352.9 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008904/0.1379, allocations: 0.5069 MB / 353.4 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.138, allocations: 4 kB / 353.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.015e-05/0.1381, allocations: 7.922 kB / 353.4 MB, free: 9.461 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.1383, allocations: 35.81 kB / 353.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.1385, allocations: 35.95 kB / 353.4 MB, free: 9.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001602/0.1387, allocations: 83.84 kB / 353.5 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.1389, allocations: 52.86 kB / 353.6 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.317e-05/0.1389, allocations: 39.8 kB / 353.6 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.1391, allocations: 51.75 kB / 353.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.1391, allocations: 4 kB / 353.7 MB, free: 9.164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.322e-05/0.1391, allocations: 4 kB / 353.7 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.1392, allocations: 23.86 kB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.187e-05/0.1392, allocations: 45.64 kB / 353.7 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1393, allocations: 79.81 kB / 353.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1394, allocations: 0 / 353.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1394, allocations: 0 / 353.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.79e-06/0.1394, allocations: 0 / 353.8 MB, free: 9.008 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006794/0.1401, allocations: 414.9 kB / 354.2 MB, free: 8.555 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.1401, allocations: 12.03 kB / 354.2 MB, free: 8.543 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.444e-05/0.1402, allocations: 50.5 kB / 354.3 MB, free: 8.484 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.452e-05/0.1403, allocations: 15.81 kB / 354.3 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.1406, allocations: 190.9 kB / 354.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.1406, allocations: 12 kB / 354.5 MB, free: 8.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.1407, allocations: 15.91 kB / 354.5 MB, free: 8.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006281/0.1413, allocations: 251.1 kB / 354.8 MB, free: 7.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.1413, allocations: 3.938 kB / 354.8 MB, free: 7.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.1414, allocations: 11.95 kB / 354.8 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1414, allocations: 0 / 354.8 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.1417, allocations: 99.88 kB / 354.9 MB, free: 7.832 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000805/0.1425, allocations: 0.5921 MB / 355.5 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.1429, allocations: 159.9 kB / 355.6 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.143, allocations: 0 / 355.6 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.143, allocations: 38.5 kB / 355.7 MB, free: 6.938 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.143, allocations: 3.938 kB / 355.7 MB, free: 6.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005811/0.1436, allocations: 197.4 kB / 355.9 MB, free: 6.734 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.1437, allocations: 118.7 kB / 356 MB, free: 6.594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1439, allocations: 126.1 kB / 356.1 MB, free: 6.457 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.1439, allocations: 25.83 kB / 356.1 MB, free: 6.426 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.144, allocations: 120 kB / 356.2 MB, free: 6.305 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.1441, allocations: 27.64 kB / 356.3 MB, free: 6.277 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/0.1441, allocations: 4 kB / 356.3 MB, free: 6.273 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1442, allocations: 326.8 kB / 356.6 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1444, allocations: 40.34 kB / 356.6 MB, free: 5.906 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.1446, allocations: 144 kB / 356.8 MB, free: 5.719 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.1447, allocations: 59.92 kB / 356.8 MB, free: 5.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1448, allocations: 3.938 kB / 356.8 MB, free: 5.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003805/0.1451, allocations: 205.1 kB / 357 MB, free: 5.449 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.1452, allocations: 8 kB / 357 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1452, allocations: 4 kB / 357 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.1452, allocations: 4 kB / 357.1 MB, free: 5.434 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1454, allocations: 56.38 kB / 357.1 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.1454, allocations: 8 kB / 357.1 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.1455, allocations: 19.83 kB / 357.1 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.1456, allocations: 16 kB / 357.2 MB, free: 5.336 MB / 286.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.0001434/0.1457, allocations: 133.7 kB / 357.3 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.1459, allocations: 89.44 kB / 357.4 MB, free: 5.102 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.146, allocations: 16.72 kB / 357.4 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.146, allocations: 8 kB / 357.4 MB, free: 5.074 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.146, allocations: 480 / 357.4 MB, free: 5.074 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.1461, allocations: 7.984 kB / 357.4 MB, free: 5.066 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.1464, allocations: 209.5 kB / 357.6 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1464, allocations: 0 / 357.6 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/0.1466, allocations: 39.98 kB / 357.6 MB, free: 4.773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1466, allocations: 3.938 kB / 357.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1466, allocations: 0 / 357.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1466, allocations: 4 kB / 357.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1466, allocations: 11.92 kB / 357.7 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005682/0.1472, allocations: 413.1 kB / 358.1 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.426e-05/0.1473, allocations: 88.98 kB / 358.2 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.1473, allocations: 8 kB / 358.2 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.1474, allocations: 7.984 kB / 358.2 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/0.1475, allocations: 20 kB / 358.2 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.096e-06/0.1475, allocations: 4 kB / 358.2 MB, free: 4.176 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.295e-05/0.1476, allocations: 95.27 kB / 358.3 MB, free: 4.082 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1476, allocations: 0 / 358.3 MB, free: 4.082 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003151/0.1479, allocations: 28 kB / 358.3 MB, free: 4.055 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 (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.0008913/0.1488, allocations: 1.099 MB / 359.4 MB, free: 2.922 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003441/0.1491, allocations: 128.7 kB / 359.5 MB, free: 2.797 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1491, allocations: 4.062 kB / 359.5 MB, free: 2.793 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1493, allocations: 35.91 kB / 359.6 MB, free: 2.758 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.1496, allocations: 51.95 kB / 359.6 MB, free: 2.707 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.1525, allocations: 3.261 MB / 362.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.153, allocations: 0.7164 MB / 363.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.274e-05/0.1531, allocations: 9.078 kB / 363.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.914e-05/0.1532, allocations: 39.42 kB / 363.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1532, allocations: 0 / 363.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.1704, allocations: 2.39 MB / 366 MB, free: 12.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003406/0.1708, allocations: 222.3 kB / 366.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/1.943, allocations: 0 / 366.3 MB, free: 12.08 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat