Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_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.00103/0.00103, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000868/0.000868, allocations: 70.73 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.638e-05/1.648e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09266/0.09269, allocations: 47.59 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3943/0.4871, allocations: 81.31 MB / 444.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.4873, allocations: 73.45 kB / 444.5 MB, free: 14.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02278/0.5101, allocations: 8.254 MB / 452.8 MB, free: 7.254 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5102, allocations: 0 / 452.8 MB, free: 7.254 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.832e-05/0.5102, allocations: 8 kB / 452.8 MB, free: 7.246 MB / 330.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.001229/0.5115, allocations: 0.6846 MB / 453.5 MB, free: 6.547 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.5115, allocations: 16.02 kB / 453.5 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.5117, allocations: 47.44 kB / 453.6 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005467/0.5122, allocations: 358.7 kB / 453.9 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.5122, allocations: 12 kB / 453.9 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/0.5123, allocations: 35.7 kB / 453.9 MB, free: 6.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004451/0.5128, allocations: 241.3 kB / 454.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005297/0.5133, allocations: 333.3 kB / 454.5 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.5133, allocations: 7.969 kB / 454.5 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.5134, allocations: 0 / 454.5 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.5134, allocations: 12 kB / 454.5 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.5156, allocations: 1.517 MB / 456 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.5161, allocations: 238.2 kB / 456.3 MB, free: 4.121 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.5162, allocations: 107.1 kB / 456.4 MB, free: 4.051 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.5163, allocations: 4 kB / 456.4 MB, free: 4.047 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.5163, allocations: 41.7 kB / 456.4 MB, free: 4 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.5163, allocations: 0 / 456.4 MB, free: 4 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001514/0.5179, allocations: 0.9362 MB / 457.4 MB, free: 3.113 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.75e-05/0.5179, allocations: 84.23 kB / 457.4 MB, free: 3.016 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.5183, allocations: 286.7 kB / 457.7 MB, free: 2.789 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/0.5183, allocations: 25.7 kB / 457.8 MB, free: 2.758 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.5185, allocations: 244.8 kB / 458 MB, free: 2.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.572e-05/0.5186, allocations: 112 kB / 458.1 MB, free: 2.473 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.628e-05/0.5186, allocations: 0 / 458.1 MB, free: 2.473 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5187, allocations: 345.5 kB / 458.4 MB, free: 2.141 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.5189, allocations: 109.8 kB / 458.5 MB, free: 2.074 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.5192, allocations: 180.5 kB / 458.7 MB, free: 1.914 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.5194, allocations: 122.9 kB / 458.8 MB, free: 1.836 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5194, allocations: 0 / 458.8 MB, free: 1.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000496/0.5199, allocations: 344.9 kB / 459.2 MB, free: 1.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003789/0.5202, allocations: 0.7918 MB / 460 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.5203, allocations: 4 kB / 460 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.5203, allocations: 4 kB / 460 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009609/0.5213, allocations: 259.6 kB / 460.2 MB, free: 484 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005846/0.5218, allocations: 0.6602 MB / 460.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.5222, allocations: 48.08 kB / 460.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.5222, allocations: 11.38 kB / 460.9 MB, free: 15.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.5222, allocations: 4 kB / 461 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004207/0.5227, allocations: 272.4 kB / 461.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.5227, allocations: 4 kB / 461.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.773e-06/0.5227, allocations: 8.203 kB / 461.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000516/0.5232, allocations: 131.7 kB / 461.4 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.5232, allocations: 4 kB / 461.4 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.5235, allocations: 39.95 kB / 461.4 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.5235, allocations: 11.19 kB / 461.4 MB, free: 15.36 MB / 346.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 () * 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.0001177/0.5237, allocations: 120.8 kB / 461.5 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003602/0.524, allocations: 242.2 kB / 461.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.736e-05/0.5241, allocations: 35.53 kB / 461.8 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.152e-05/0.5242, allocations: 46.5 kB / 461.8 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5242, allocations: 4 kB / 461.9 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.5242, allocations: 7.938 kB / 461.9 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.5242, allocations: 3.984 kB / 461.9 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009533/0.5252, allocations: 0.7405 MB / 462.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5252, allocations: 0 / 462.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/0.5257, allocations: 103.9 kB / 462.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.5257, allocations: 4 kB / 462.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.5257, allocations: 4 kB / 462.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.5257, allocations: 3.953 kB / 462.7 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.5257, allocations: 4 kB / 462.7 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005996/0.5263, allocations: 0.543 MB / 463.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.5265, allocations: 135.7 kB / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.5265, allocations: 0 / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003147/0.5269, allocations: 43.89 kB / 463.4 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.327e-05/0.5269, allocations: 31.72 kB / 463.5 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.527, allocations: 11.95 kB / 463.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002043/0.5272, allocations: 215.5 kB / 463.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5272, allocations: 0 / 463.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005031/0.5277, allocations: 119.9 kB / 463.8 MB, free: 13.25 MB / 346.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 () * 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.001062/0.5288, allocations: 1.364 MB / 465.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.5298, allocations: 0.545 MB / 465.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.5299, allocations: 448 / 465.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.53, allocations: 126.8 kB / 465.8 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.5306, allocations: 81.25 kB / 465.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.5323, allocations: 0.8723 MB / 466.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.5327, allocations: 0.8354 MB / 467.6 MB, free: 9.672 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003239/0.5331, allocations: 85.2 kB / 467.7 MB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.5332, allocations: 140.3 kB / 467.8 MB, free: 9.551 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5332, allocations: 0 / 467.8 MB, free: 9.551 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02803/0.5613, allocations: 7.613 MB / 475.5 MB, free: 1.938 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/0.5616, allocations: 120.4 kB / 475.6 MB, free: 1.75 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.033/2.595, allocations: 4 kB / 475.6 MB, free: 1.746 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat