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.001145/0.001145, allocations: 98.77 kB / 16.3 MB, free: 5.539 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.001051/0.001051, allocations: 180.5 kB / 17.19 MB, free: 5.473 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.417/1.417, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003843, allocations: 8.688 kB / 300.8 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1256, allocations: 50.41 MB / 351.2 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003805/0.1294, allocations: 2.581 MB / 353.8 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.1317, allocations: 0.9198 MB / 354.7 MB, free: 204 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005076/0.1322, allocations: 11.94 kB / 354.7 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003395/0.1326, allocations: 43.56 kB / 354.8 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005408/0.1331, allocations: 143.5 kB / 354.9 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000662/0.1338, allocations: 170.9 kB / 355.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006673/0.1345, allocations: 335.9 kB / 355.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.1348, allocations: 131.7 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.1351, allocations: 147.3 kB / 355.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003106/0.1354, allocations: 175 kB / 355.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.586e-05/0.1355, allocations: 16 kB / 355.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.388e-05/0.1356, allocations: 16 kB / 355.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.008e-05/0.1356, allocations: 71.67 kB / 355.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.922e-05/0.1358, allocations: 97.45 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.1361, allocations: 339.4 kB / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1361, allocations: 0 / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1361, allocations: 0 / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.1361, allocations: 0 / 356.4 MB, free: 14.52 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.001273/0.1374, allocations: 0.7218 MB / 357.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.1375, allocations: 15.97 kB / 357.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.134e-05/0.1376, allocations: 70.53 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.288e-05/0.1376, allocations: 51.44 kB / 357.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.1381, allocations: 346.6 kB / 357.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.1381, allocations: 33 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.945e-05/0.1382, allocations: 36 kB / 357.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008924/0.1391, allocations: 470.3 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.1391, allocations: 7.859 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.1392, allocations: 16 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.1392, allocations: 8 kB / 358.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009913/0.1402, allocations: 419.6 kB / 358.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.1426, allocations: 1.583 MB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008656/0.1434, allocations: 347.9 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.1435, allocations: 4 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.1435, allocations: 34.56 kB / 360.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.154e-06/0.1435, allocations: 3.938 kB / 360.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003368/0.1469, allocations: 1.511 MB / 362 MB, free: 8.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.811e-05/0.147, allocations: 81.05 kB / 362.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.1474, allocations: 361.5 kB / 362.4 MB, free: 8.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.1475, allocations: 29.7 kB / 362.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.1476, allocations: 243.9 kB / 362.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.503e-05/0.1477, allocations: 110.4 kB / 362.8 MB, free: 7.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.091e-05/0.1478, allocations: 8 kB / 362.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1479, allocations: 354.8 kB / 363.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000469/0.1484, allocations: 188.8 kB / 363.4 MB, free: 7.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000505/0.1489, allocations: 268.8 kB / 363.6 MB, free: 6.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004689/0.1494, allocations: 199.9 kB / 363.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1494, allocations: 4 kB / 363.8 MB, free: 6.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00116/0.1506, allocations: 0.5202 MB / 364.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003515/0.1509, allocations: 0.7906 MB / 365.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.151, allocations: 4 kB / 365.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.151, allocations: 4 kB / 365.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009365/0.1519, allocations: 259.7 kB / 365.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/0.1538, allocations: 1.56 MB / 367 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003597/0.1541, allocations: 48.06 kB / 367 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.1542, allocations: 12 kB / 367 MB, free: 3.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/0.1542, allocations: 4 kB / 367 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009737/0.1552, allocations: 443.6 kB / 367.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1552, allocations: 4 kB / 367.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/0.1552, allocations: 7.938 kB / 367.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004845/0.1557, allocations: 135.9 kB / 367.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.1557, allocations: 11.92 kB / 367.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.156, allocations: 39.95 kB / 367.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.156, allocations: 16 kB / 367.7 MB, free: 2.637 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.0002554/0.1563, allocations: 237.1 kB / 367.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-05/0.1564, allocations: 39.53 kB / 367.9 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.236e-05/0.1564, allocations: 52.23 kB / 368 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1565, allocations: 3.953 kB / 368 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1565, allocations: 4 kB / 368 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.1565, allocations: 4 kB / 368 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.1583, allocations: 0.9657 MB / 369 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1583, allocations: 0 / 369 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/0.1588, allocations: 95.88 kB / 369 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.1588, allocations: 4 kB / 369.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/0.1589, allocations: 12.12 kB / 369.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1589, allocations: 0 / 369.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.1589, allocations: 7.938 kB / 369.1 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.1604, allocations: 0.7783 MB / 369.9 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.1605, allocations: 136.6 kB / 370 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.1606, allocations: 8 kB / 370 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.1609, allocations: 47.95 kB / 370 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.1609, allocations: 31.86 kB / 370.1 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.161, allocations: 12 kB / 370.1 MB, free: 64 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1867/0.3477, allocations: 239.2 kB / 370.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3477, allocations: 0 / 370.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000901/0.3486, allocations: 135.9 kB / 370.4 MB, free: 24.32 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.001985/0.3506, allocations: 1.601 MB / 372 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.3529, allocations: 0.7965 MB / 372.8 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/0.3529, allocations: 1.281 kB / 372.8 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005094/0.3534, allocations: 208.2 kB / 373.1 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006217/0.354, allocations: 82.48 kB / 373.1 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005069/0.3591, allocations: 4.005 MB / 377.1 MB, free: 21.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3595, allocations: 0.8249 MB / 378 MB, free: 20.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003075/0.3598, allocations: 65.52 kB / 378 MB, free: 20.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.36, allocations: 139.6 kB / 378.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.36, allocations: 4 kB / 378.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/0.3834, allocations: 7.894 MB / 386.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.3836, allocations: 197 kB / 386.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.325, allocations: 7.875 kB / 386.3 MB, free: 18.2 MB / 302.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