Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.001584, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.167/2.167, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001169/0.001169, allocations: 106.7 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005722/0.0005724, allocations: 11.98 kB / 327 MB, free: 15.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1166, allocations: 47.59 MB / 374.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004756/0.1214, allocations: 2.585 MB / 377.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.1242, allocations: 0.9558 MB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003939/0.1247, allocations: 11.94 kB / 378.2 MB, free: 11.78 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.125, allocations: 59.55 kB / 378.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006174/0.1256, allocations: 131.6 kB / 378.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008222/0.1265, allocations: 195.6 kB / 378.6 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007976/0.1273, allocations: 332 kB / 378.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003695/0.1277, allocations: 131.7 kB / 379 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000326/0.128, allocations: 155.3 kB / 379.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/0.1284, allocations: 171.1 kB / 379.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.965e-05/0.1284, allocations: 20 kB / 379.3 MB, free: 10.6 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.6e-05/0.1285, allocations: 16 kB / 379.4 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1287, allocations: 67.69 kB / 379.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.1288, allocations: 93.45 kB / 379.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005533/0.1294, allocations: 347.4 kB / 379.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1294, allocations: 0 / 379.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1294, allocations: 0 / 379.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.1294, allocations: 0 / 379.9 MB, free: 10.08 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002055/0.1315, allocations: 0.7287 MB / 380.6 MB, free: 9.301 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.1316, allocations: 11.97 kB / 380.6 MB, free: 9.289 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.1317, allocations: 74.53 kB / 380.7 MB, free: 9.207 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.1319, allocations: 51.34 kB / 380.7 MB, free: 9.156 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007321/0.1326, allocations: 350.7 kB / 381.1 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.1327, allocations: 25 kB / 381.1 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.1328, allocations: 47.91 kB / 381.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.1344, allocations: 466.3 kB / 381.6 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.1344, allocations: 0 / 381.6 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.976e-05/0.1345, allocations: 16 kB / 381.6 MB, free: 8.211 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.1345, allocations: 8 kB / 381.6 MB, free: 8.203 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00183/0.1364, allocations: 427.6 kB / 382 MB, free: 7.785 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003483/0.1399, allocations: 1.579 MB / 383.6 MB, free: 6.113 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.1414, allocations: 342.8 kB / 383.9 MB, free: 5.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.1415, allocations: 4 kB / 384 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.1415, allocations: 38.56 kB / 384 MB, free: 5.719 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 2.815e-06/0.1415, allocations: 0 / 384 MB, free: 5.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.00597/0.1475, allocations: 1.514 MB / 385.5 MB, free: 4.113 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/0.1476, allocations: 81.11 kB / 385.6 MB, free: 4.016 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006488/0.1483, allocations: 361.5 kB / 385.9 MB, free: 3.652 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.166e-05/0.1484, allocations: 33.7 kB / 386 MB, free: 3.613 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.1487, allocations: 282.3 kB / 386.2 MB, free: 3.336 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.1488, allocations: 118.4 kB / 386.4 MB, free: 3.219 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.1489, allocations: 16 kB / 386.4 MB, free: 3.203 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.1491, allocations: 330.8 kB / 386.7 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009267/0.15, allocations: 184.8 kB / 386.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009545/0.151, allocations: 272.7 kB / 387.1 MB, free: 2.391 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008985/0.1519, allocations: 199.9 kB / 387.3 MB, free: 2.195 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.152, allocations: 0 / 387.3 MB, free: 2.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002065/0.154, allocations: 0.5017 MB / 387.8 MB, free: 1.688 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004216/0.1545, allocations: 0.7861 MB / 388.6 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.1545, allocations: 4 kB / 388.6 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.1546, allocations: 8 kB / 388.6 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.1564, allocations: 259.7 kB / 388.9 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2692/0.4257, allocations: 1.552 MB / 390.4 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007607/0.4265, allocations: 51.66 kB / 390.5 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.4266, allocations: 15.58 kB / 390.5 MB, free: 19.35 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.4266, allocations: 4.281 kB / 390.5 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001879/0.4285, allocations: 443 kB / 390.9 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.4285, allocations: 1.312 kB / 390.9 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.4286, allocations: 7.062 kB / 391 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.4296, allocations: 133.2 kB / 391.1 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.4296, allocations: 5.141 kB / 391.1 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/0.4301, allocations: 40.89 kB / 391.1 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.4302, allocations: 17.47 kB / 391.1 MB, free: 19.35 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003837/0.4306, allocations: 245.9 kB / 391.4 MB, free: 19.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.4307, allocations: 40.88 kB / 391.4 MB, free: 19.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.4309, allocations: 46.36 kB / 391.5 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.4309, allocations: 4.062 kB / 391.5 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4309, allocations: 0.8906 kB / 391.5 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.4309, allocations: 5.359 kB / 391.5 MB, free: 19.14 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002855/0.4338, allocations: 0.9657 MB / 392.4 MB, free: 18.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.4339, allocations: 3.719 kB / 392.5 MB, free: 18.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008695/0.4347, allocations: 97.53 kB / 392.5 MB, free: 18.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.375e-05/0.4348, allocations: 10.05 kB / 392.6 MB, free: 18.79 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-05/0.4348, allocations: 6.859 kB / 392.6 MB, free: 18.79 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.755e-06/0.4348, allocations: 3.109 kB / 392.6 MB, free: 18.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4349, allocations: 1.594 kB / 392.6 MB, free: 18.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.4376, allocations: 0.7802 MB / 393.3 MB, free: 18.53 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002545/0.4379, allocations: 134.8 kB / 393.5 MB, free: 18.42 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.438, allocations: 9.891 kB / 393.5 MB, free: 18.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000591/0.4386, allocations: 46.66 kB / 393.5 MB, free: 18.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.4388, allocations: 28.16 kB / 393.6 MB, free: 18.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.568e-05/0.4388, allocations: 11.39 kB / 393.6 MB, free: 18.4 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004543/0.4393, allocations: 252.7 kB / 393.8 MB, free: 18.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.4393, allocations: 0 / 393.8 MB, free: 18.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009428/0.4403, allocations: 135 kB / 394 MB, free: 18.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.003033/0.4433, allocations: 1.611 MB / 395.6 MB, free: 17.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.4472, allocations: 0.781 MB / 396.3 MB, free: 16.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/0.4473, allocations: 1.469 kB / 396.3 MB, free: 16.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.4484, allocations: 209 kB / 396.6 MB, free: 16.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001693/0.4502, allocations: 89.83 kB / 396.6 MB, free: 16.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.465, allocations: 4.056 MB / 400.7 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006064/0.4656, allocations: 0.8318 MB / 401.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000624/0.4663, allocations: 144.7 kB / 401.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of SimCode: time 1.653e-06/0.4663, allocations: 0 / 401.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.785/3.251, allocations: 7.58 MB / 409.2 MB, free: 10.5 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat