Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.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.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008599/0.00086, allocations: 101.7 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009067/0.0009068, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002438/0.000244, allocations: 7.984 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1047, allocations: 51.48 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00336/0.1082, allocations: 2.585 MB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1099, allocations: 0.9511 MB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002178/0.1102, allocations: 15.88 kB / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002495/0.1104, allocations: 39.62 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000337/0.1108, allocations: 139.6 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004337/0.1112, allocations: 183.4 kB / 362.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004245/0.1116, allocations: 332 kB / 362.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.1119, allocations: 143.5 kB / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.1121, allocations: 151.3 kB / 362.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.1123, allocations: 171.1 kB / 362.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.1124, allocations: 12 kB / 362.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.211e-05/0.1124, allocations: 16 kB / 362.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.237e-05/0.1125, allocations: 67.69 kB / 363 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.398e-05/0.1126, allocations: 101.5 kB / 363.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000318/0.1129, allocations: 347.4 kB / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.1129, allocations: 0 / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1129, allocations: 0 / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1129, allocations: 0 / 363.4 MB, free: 8.543 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001192/0.1141, allocations: 0.7132 MB / 364.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1142, allocations: 8.031 kB / 364.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.671e-05/0.1143, allocations: 74.53 kB / 364.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.845e-05/0.1144, allocations: 47.44 kB / 364.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.1148, allocations: 350.6 kB / 364.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.494e-05/0.1149, allocations: 36.89 kB / 364.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-05/0.1149, allocations: 36 kB / 364.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008942/0.1158, allocations: 471.2 kB / 365.1 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.1159, allocations: 11.91 kB / 365.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.627e-05/0.1159, allocations: 12 kB / 365.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1159, allocations: 8 kB / 365.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009951/0.1169, allocations: 423.6 kB / 365.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002151/0.1191, allocations: 1.583 MB / 367.1 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008056/0.1199, allocations: 339.8 kB / 367.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.12, allocations: 4 kB / 367.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.12, allocations: 30.56 kB / 367.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.214e-06/0.12, allocations: 3.938 kB / 367.5 MB, free: 4.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003591/0.1236, allocations: 1.526 MB / 369 MB, free: 2.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.1237, allocations: 110.8 kB / 369.1 MB, free: 2.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003642/0.1241, allocations: 353.5 kB / 369.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1241, allocations: 29.7 kB / 369.5 MB, free: 2.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.1243, allocations: 248 kB / 369.8 MB, free: 1.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.112e-05/0.1244, allocations: 106.5 kB / 369.9 MB, free: 1.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.1244, allocations: 4 kB / 369.9 MB, free: 1.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1245, allocations: 350.8 kB / 370.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.125, allocations: 188.8 kB / 370.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.1255, allocations: 277.6 kB / 370.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004582/0.126, allocations: 203.9 kB / 370.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.126, allocations: 0 / 370.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001082/0.1271, allocations: 0.5241 MB / 371.4 MB, free: 128 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.1961/0.3232, allocations: 0.7886 MB / 372.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.3233, allocations: 2.797 kB / 372.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.3233, allocations: 5.75 kB / 372.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.3244, allocations: 262.2 kB / 372.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.326, allocations: 1.559 MB / 374 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004594/0.3265, allocations: 51.19 kB / 374.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.3266, allocations: 17.14 kB / 374.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.3266, allocations: 3.031 kB / 374.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00108/0.3277, allocations: 443.7 kB / 374.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.3277, allocations: 2.125 kB / 374.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.184e-06/0.3277, allocations: 6.719 kB / 374.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005343/0.3282, allocations: 134.7 kB / 374.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.3283, allocations: 4.312 kB / 374.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.3286, allocations: 47.48 kB / 374.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.3286, allocations: 22.11 kB / 374.7 MB, free: 17.34 MB / 302.1 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.0002241/0.3288, allocations: 238.2 kB / 374.9 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.991e-05/0.3289, allocations: 43.02 kB / 375 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.483e-05/0.329, allocations: 46.23 kB / 375 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.329, allocations: 2.781 kB / 375 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.329, allocations: 1.406 kB / 375 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.329, allocations: 1.219 kB / 375 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.3307, allocations: 0.9628 MB / 376 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3307, allocations: 1.969 kB / 376 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004579/0.3312, allocations: 99.7 kB / 376.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.3312, allocations: 3.031 kB / 376.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.3313, allocations: 12.08 kB / 376.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.3313, allocations: 10.52 kB / 376.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3313, allocations: 2.266 kB / 376.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.3329, allocations: 0.7805 MB / 376.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.333, allocations: 134 kB / 377 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/0.3331, allocations: 8.547 kB / 377.1 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/0.3334, allocations: 48.64 kB / 377.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.937e-05/0.3335, allocations: 28.52 kB / 377.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.3335, allocations: 8.594 kB / 377.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000286/0.3338, allocations: 246.2 kB / 377.4 MB, free: 16.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3338, allocations: 4 kB / 377.4 MB, free: 16.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005728/0.3344, allocations: 138.2 kB / 377.5 MB, free: 16.33 MB / 302.1 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.001694/0.3361, allocations: 1.598 MB / 379.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3382, allocations: 0.7927 MB / 379.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3382, allocations: 0 / 379.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004533/0.3386, allocations: 207.4 kB / 380.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.3392, allocations: 89.44 kB / 380.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004834/0.344, allocations: 3.985 MB / 384.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.3444, allocations: 0.8298 MB / 385 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.3447, allocations: 61.72 kB / 385.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.3449, allocations: 142 kB / 385.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3449, allocations: 0 / 385.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.369, allocations: 7.923 MB / 393.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/0.3693, allocations: 195.5 kB / 393.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.258, allocations: 0 / 393.3 MB, free: 8.867 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat