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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000838/0.000838, allocations: 98.58 kB / 16.95 MB, free: 6.453 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.001323/0.001323, allocations: 183.7 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004485/0.0004486, allocations: 16 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1052, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003563/0.1088, allocations: 2.647 MB / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.1106, allocations: 0.9557 MB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.1108, allocations: 15.88 kB / 332.1 MB, free: 356 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.1112, allocations: 71.47 kB / 332.1 MB, free: 284 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002062/0.1114, allocations: 83.33 kB / 332.2 MB, free: 200 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.1119, allocations: 175.7 kB / 332.4 MB, free: 24 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.1124, allocations: 471.2 kB / 332.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.1126, allocations: 127.8 kB / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.1128, allocations: 155.2 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.113, allocations: 167.1 kB / 333.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.379e-05/0.1131, allocations: 16 kB / 333.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.318e-05/0.1131, allocations: 16 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.1133, allocations: 71.67 kB / 333.4 MB, free: 15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.78e-05/0.1133, allocations: 93.45 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003832/0.1137, allocations: 355.3 kB / 333.8 MB, free: 14.56 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1138, allocations: 4 kB / 333.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1138, allocations: 0 / 333.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1138, allocations: 0 / 333.8 MB, free: 14.55 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.001125/0.1149, allocations: 0.7131 MB / 334.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.115, allocations: 16.03 kB / 334.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.068e-05/0.115, allocations: 70.53 kB / 334.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.607e-05/0.1151, allocations: 55.34 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.1156, allocations: 346.7 kB / 335 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.1156, allocations: 29 kB / 335 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.429e-05/0.1157, allocations: 39.91 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008324/0.1165, allocations: 470.3 kB / 335.5 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.1166, allocations: 4 kB / 335.5 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.1166, allocations: 12 kB / 335.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1166, allocations: 8 kB / 335.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008929/0.1175, allocations: 419.6 kB / 336 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.1196, allocations: 1.594 MB / 337.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007604/0.1203, allocations: 346.7 kB / 337.9 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004072/0.1207, allocations: 188.8 kB / 338.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.1208, allocations: 4 kB / 338.1 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.1208, allocations: 30.56 kB / 338.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.744e-06/0.1208, allocations: 0 / 338.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003026/0.1239, allocations: 1.517 MB / 339.6 MB, free: 8.414 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.1239, allocations: 85.09 kB / 339.7 MB, free: 8.312 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003681/0.1243, allocations: 353.6 kB / 340.1 MB, free: 7.957 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.1244, allocations: 33.7 kB / 340.1 MB, free: 7.918 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.1245, allocations: 248 kB / 340.3 MB, free: 7.672 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.649e-05/0.1246, allocations: 114.3 kB / 340.5 MB, free: 7.559 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.1247, allocations: 12 kB / 340.5 MB, free: 7.547 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1248, allocations: 346.8 kB / 340.8 MB, free: 7.199 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.1252, allocations: 184.8 kB / 341 MB, free: 7.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005174/0.1258, allocations: 280.7 kB / 341.3 MB, free: 6.711 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/0.1262, allocations: 196 kB / 341.5 MB, free: 6.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1262, allocations: 0 / 341.5 MB, free: 6.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001/0.1272, allocations: 0.5324 MB / 342 MB, free: 5.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.908e-05/0.1273, allocations: 148 kB / 342.1 MB, free: 5.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1274, allocations: 4 kB / 342.1 MB, free: 5.801 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.1274, allocations: 4 kB / 342.1 MB, free: 5.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/0.1282, allocations: 263.7 kB / 342.4 MB, free: 5.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.1299, allocations: 1.54 MB / 343.9 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.1302, allocations: 52.05 kB / 344 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.1302, allocations: 16 kB / 344 MB, free: 3.801 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.1302, allocations: 4 kB / 344 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008447/0.1311, allocations: 443.5 kB / 344.4 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-06/0.1311, allocations: 4 kB / 344.4 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.961e-06/0.1311, allocations: 4 kB / 344.4 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004403/0.1316, allocations: 128 kB / 344.6 MB, free: 3.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1316, allocations: 11.98 kB / 344.6 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.1318, allocations: 39.97 kB / 344.6 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.1319, allocations: 16 kB / 344.6 MB, free: 3.164 MB / 286.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.0002428/0.1321, allocations: 241 kB / 344.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.527e-05/0.1322, allocations: 47.39 kB / 344.9 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.444e-05/0.1323, allocations: 48.19 kB / 345 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1323, allocations: 4 kB / 345 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1323, allocations: 0 / 345 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.1323, allocations: 3.938 kB / 345 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.1339, allocations: 0.969 MB / 345.9 MB, free: 1.781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1339, allocations: 0 / 345.9 MB, free: 1.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.1343, allocations: 95.88 kB / 346 MB, free: 1.688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.1343, allocations: 4 kB / 346 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.1343, allocations: 8.125 kB / 346.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-06/0.1343, allocations: 8 kB / 346.1 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1343, allocations: 0 / 346.1 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.1356, allocations: 0.7368 MB / 346.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.1357, allocations: 136.7 kB / 346.9 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.1358, allocations: 12 kB / 346.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.1361, allocations: 43.95 kB / 347 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.1361, allocations: 19.97 kB / 347 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.1362, allocations: 12 kB / 347 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000247/0.1364, allocations: 251.2 kB / 347.3 MB, free: 432 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1364, allocations: 0 / 347.3 MB, free: 432 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005142/0.137, allocations: 136 kB / 347.4 MB, free: 296 kB / 286.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.001609/0.1386, allocations: 1.293 MB / 348.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.1404, allocations: 0.8007 MB / 349.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1404, allocations: 0 / 349.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004212/0.1408, allocations: 200.1 kB / 349.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007019/0.1415, allocations: 93.61 kB / 349.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004468/0.146, allocations: 2.802 MB / 352.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.1464, allocations: 0.8312 MB / 353.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002832/0.1467, allocations: 63.23 kB / 353.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.147, allocations: 143.3 kB / 353.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.147, allocations: 0 / 353.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.1705, allocations: 7.972 MB / 361.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/0.1709, allocations: 203.9 kB / 361.8 MB, free: 1.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.054/2.225, allocations: 4.062 kB / 361.8 MB, free: 1.707 MB / 302.1 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) Environment - environmentSimulation: 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