Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.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.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",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.0008664/0.0008666, allocations: 87.56 kB / 16.31 MB, free: 5.684 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.000976/0.0009761, allocations: 181.8 kB / 17.21 MB, free: 5.602 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.335/1.335, allocations: 223.3 MB / 241.2 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002851/0.0002855, allocations: 14.41 kB / 300.9 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1085, allocations: 50.42 MB / 351.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003248/0.1118, allocations: 2.63 MB / 354 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.1136, allocations: 0.9197 MB / 354.9 MB, free: 7.988 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003894/0.114, allocations: 15.88 kB / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003455/0.1144, allocations: 63.48 kB / 355 MB, free: 7.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.1147, allocations: 83.33 kB / 355 MB, free: 7.828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000548/0.1152, allocations: 163.8 kB / 355.2 MB, free: 7.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005757/0.1158, allocations: 471 kB / 355.7 MB, free: 7.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002782/0.1161, allocations: 127.7 kB / 355.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.1164, allocations: 151.3 kB / 355.9 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.1166, allocations: 163.1 kB / 356.1 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.1166, allocations: 16 kB / 356.1 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.736e-05/0.1167, allocations: 16 kB / 356.1 MB, free: 6.734 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.304e-05/0.1168, allocations: 71.62 kB / 356.2 MB, free: 6.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.808e-05/0.1169, allocations: 97.52 kB / 356.3 MB, free: 6.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.1172, allocations: 343.1 kB / 356.6 MB, free: 6.227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1172, allocations: 0 / 356.6 MB, free: 6.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1172, allocations: 0 / 356.6 MB, free: 6.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.1172, allocations: 0 / 356.6 MB, free: 6.227 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001109/0.1183, allocations: 0.7272 MB / 357.4 MB, free: 5.453 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.1184, allocations: 8.031 kB / 357.4 MB, free: 5.445 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.947e-05/0.1185, allocations: 70.53 kB / 357.4 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.152e-05/0.1186, allocations: 51.44 kB / 357.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.119, allocations: 346.7 kB / 357.8 MB, free: 4.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.119, allocations: 25 kB / 357.8 MB, free: 4.918 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.162e-05/0.1191, allocations: 36 kB / 357.9 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008153/0.1199, allocations: 470.3 kB / 358.3 MB, free: 4.398 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.1199, allocations: 11.91 kB / 358.3 MB, free: 4.387 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.12, allocations: 15.95 kB / 358.4 MB, free: 4.371 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.12, allocations: 19.98 kB / 358.4 MB, free: 4.352 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008974/0.1209, allocations: 427.5 kB / 358.8 MB, free: 3.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.1229, allocations: 1.583 MB / 360.4 MB, free: 2.258 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008174/0.1237, allocations: 342.8 kB / 360.7 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/0.1241, allocations: 180.8 kB / 360.9 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.1242, allocations: 4 kB / 360.9 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.1242, allocations: 38.56 kB / 360.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.1242, allocations: 0 / 360.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00308/0.1273, allocations: 1.519 MB / 362.5 MB, free: 68 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.1274, allocations: 81.11 kB / 362.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.1278, allocations: 349.6 kB / 362.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.1278, allocations: 33.7 kB / 362.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.128, allocations: 248 kB / 363.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.207e-05/0.1281, allocations: 114.3 kB / 363.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-05/0.1281, allocations: 4 kB / 363.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1283, allocations: 350.8 kB / 363.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004277/0.1287, allocations: 184.8 kB / 363.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.1292, allocations: 280.8 kB / 364.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.1297, allocations: 195.9 kB / 364.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1297, allocations: 0 / 364.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001057/0.1307, allocations: 0.5242 MB / 364.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.1309, allocations: 148.5 kB / 364.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1309, allocations: 0 / 364.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.1309, allocations: 7.984 kB / 364.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008802/0.1318, allocations: 263.7 kB / 365.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.1335, allocations: 1.54 MB / 366.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000328/0.1338, allocations: 51.98 kB / 366.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.1339, allocations: 16 kB / 366.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.1339, allocations: 8.062 kB / 366.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008856/0.1348, allocations: 439.7 kB / 367.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1348, allocations: 4.031 kB / 367.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.211e-06/0.1348, allocations: 4 kB / 367.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.1353, allocations: 127.8 kB / 367.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.1353, allocations: 7.984 kB / 367.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.1356, allocations: 51.95 kB / 367.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.1356, allocations: 16 kB / 367.4 MB, free: 10.84 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.0002367/0.1358, allocations: 248.8 kB / 367.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.37e-05/0.1359, allocations: 35.53 kB / 367.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.925e-05/0.136, allocations: 52.23 kB / 367.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.136, allocations: 8 kB / 367.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.136, allocations: 0 / 367.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.136, allocations: 0 / 367.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.1376, allocations: 0.958 MB / 368.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.1376, allocations: 3.984 kB / 368.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003881/0.138, allocations: 104 kB / 368.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.1381, allocations: 0 / 368.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.1381, allocations: 8 kB / 368.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.1381, allocations: 4 kB / 368.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.1381, allocations: 3.953 kB / 368.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.1395, allocations: 0.7324 MB / 369.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.1397, allocations: 140.7 kB / 369.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.821e-05/0.1397, allocations: 8 kB / 369.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.14, allocations: 47.95 kB / 369.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.996e-05/0.1401, allocations: 23.92 kB / 369.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1401, allocations: 8 kB / 369.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002694/0.1404, allocations: 247.2 kB / 370.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1404, allocations: 4 kB / 370.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005517/0.141, allocations: 136 kB / 370.2 MB, free: 7.965 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.001696/0.1427, allocations: 1.278 MB / 371.5 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001852/0.1445, allocations: 0.7929 MB / 372.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1446, allocations: 0 / 372.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.145, allocations: 200.1 kB / 372.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006874/0.1457, allocations: 99.59 kB / 372.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004817/0.1505, allocations: 2.798 MB / 375.3 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.1509, allocations: 0.8237 MB / 376.2 MB, free: 1.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002937/0.1512, allocations: 59.23 kB / 376.2 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002097/0.1514, allocations: 139.4 kB / 376.4 MB, free: 1.633 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1515, allocations: 0 / 376.4 MB, free: 1.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.1732, allocations: 7.925 MB / 384.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.1734, allocations: 214.6 kB / 384.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/1.977, allocations: 4 kB / 384.5 MB, free: 9.633 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat