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.0009786/0.0009786, allocations: 95.25 kB / 16.94 MB, free: 6.441 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.0009785/0.0009784, allocations: 183.5 kB / 17.83 MB, free: 6.008 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.28/1.28, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004261/0.0004262, allocations: 16 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08356/0.084, allocations: 47.58 MB / 328.4 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003183/0.08723, allocations: 2.586 MB / 331 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.08868, allocations: 0.9597 MB / 332 MB, free: 452 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.08889, allocations: 15.88 kB / 332 MB, free: 436 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002132/0.08911, allocations: 43.62 kB / 332 MB, free: 392 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.08944, allocations: 143.5 kB / 332.2 MB, free: 248 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.08985, allocations: 179.7 kB / 332.3 MB, free: 68 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004344/0.09029, allocations: 339.9 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.09054, allocations: 131.7 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.09074, allocations: 147.3 kB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.09095, allocations: 175.1 kB / 333.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.79e-05/0.09099, allocations: 16 kB / 333.1 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.489e-05/0.09104, allocations: 20 kB / 333.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.989e-05/0.09113, allocations: 67.69 kB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.441e-05/0.09121, allocations: 93.45 kB / 333.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003435/0.09156, allocations: 355.3 kB / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.09157, allocations: 0 / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.09158, allocations: 0 / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.0916, allocations: 3.938 kB / 333.7 MB, free: 14.73 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.001233/0.09283, allocations: 0.7209 MB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.09289, allocations: 8.031 kB / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.92e-05/0.09298, allocations: 74.53 kB / 334.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.476e-05/0.09307, allocations: 55.33 kB / 334.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004715/0.09355, allocations: 354.7 kB / 334.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.0936, allocations: 25 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.646e-05/0.09368, allocations: 43.91 kB / 334.9 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008438/0.09453, allocations: 462.4 kB / 335.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.09457, allocations: 7.938 kB / 335.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.09461, allocations: 12 kB / 335.4 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.09462, allocations: 8 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009402/0.09557, allocations: 423.6 kB / 335.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.09746, allocations: 1.583 MB / 337.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007872/0.09826, allocations: 338.8 kB / 337.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.0983, allocations: 8.094 kB / 337.7 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.09834, allocations: 30.56 kB / 337.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.933e-06/0.09835, allocations: 4 kB / 337.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00307/0.1014, allocations: 1.517 MB / 339.3 MB, free: 8.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.1015, allocations: 81.11 kB / 339.4 MB, free: 8.672 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003399/0.1018, allocations: 353.6 kB / 339.7 MB, free: 8.316 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.1019, allocations: 33.7 kB / 339.7 MB, free: 8.277 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.102, allocations: 239.9 kB / 340 MB, free: 8.039 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.03e-05/0.1021, allocations: 122.2 kB / 340.1 MB, free: 7.918 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.96e-05/0.1021, allocations: 15.94 kB / 340.1 MB, free: 7.902 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1023, allocations: 350.8 kB / 340.5 MB, free: 7.551 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/0.1027, allocations: 184.8 kB / 340.6 MB, free: 7.371 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004783/0.1032, allocations: 272.8 kB / 340.9 MB, free: 7.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004532/0.1037, allocations: 203.8 kB / 341.1 MB, free: 6.871 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1037, allocations: 0 / 341.1 MB, free: 6.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001057/0.1047, allocations: 0.5286 MB / 341.6 MB, free: 6.336 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002674/0.105, allocations: 0.7784 MB / 342.4 MB, free: 5.496 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.105, allocations: 4 kB / 342.4 MB, free: 5.492 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.105, allocations: 7.938 kB / 342.4 MB, free: 5.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000882/0.1059, allocations: 263.7 kB / 342.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.1075, allocations: 1.563 MB / 344.2 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.1079, allocations: 56.08 kB / 344.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.98e-05/0.1079, allocations: 16 kB / 344.3 MB, free: 3.461 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.273e-06/0.1079, allocations: 4 kB / 344.3 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009035/0.1088, allocations: 439.6 kB / 344.7 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1089, allocations: 4 kB / 344.7 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.571e-06/0.1089, allocations: 4 kB / 344.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.1093, allocations: 132 kB / 344.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.1094, allocations: 4 kB / 344.9 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.1096, allocations: 39.97 kB / 344.9 MB, free: 2.848 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.1097, allocations: 20 kB / 344.9 MB, free: 2.828 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.0002007/0.1099, allocations: 244.9 kB / 345.2 MB, free: 2.578 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/0.1099, allocations: 43.44 kB / 345.2 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.236e-05/0.11, allocations: 48.25 kB / 345.3 MB, free: 2.488 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.11, allocations: 0 / 345.3 MB, free: 2.488 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.11, allocations: 4 kB / 345.3 MB, free: 2.484 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1101, allocations: 7.922 kB / 345.3 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.1116, allocations: 0.9573 MB / 346.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1116, allocations: 0 / 346.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.112, allocations: 100 kB / 346.3 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.112, allocations: 4 kB / 346.3 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.1121, allocations: 11.98 kB / 346.4 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.1121, allocations: 0 / 346.4 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1121, allocations: 4 kB / 346.4 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.1134, allocations: 0.7865 MB / 347.1 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.1136, allocations: 136.7 kB / 347.3 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.635e-05/0.1136, allocations: 11.98 kB / 347.3 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000296/0.1139, allocations: 43.97 kB / 347.3 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.11e-05/0.114, allocations: 28.08 kB / 347.4 MB, free: 268 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.114, allocations: 8 kB / 347.4 MB, free: 260 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002216/0.1143, allocations: 247.2 kB / 347.6 MB, free: 16 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1143, allocations: 3.938 kB / 347.6 MB, free: 12 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004923/0.1148, allocations: 140.1 kB / 347.8 MB, free: 15.87 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.001687/0.1165, allocations: 1.61 MB / 349.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.1183, allocations: 0.7929 MB / 350.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1183, allocations: 3.938 kB / 350.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004327/0.1187, allocations: 200.1 kB / 350.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005156/0.1193, allocations: 89.47 kB / 350.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004573/0.1238, allocations: 4.011 MB / 354.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.1244, allocations: 0.8428 MB / 355.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002459/0.1246, allocations: 63.23 kB / 355.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.1248, allocations: 139.4 kB / 355.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1248, allocations: 0 / 355.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.1438, allocations: 7.948 MB / 363.4 MB, free: 12 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.1441, allocations: 199.1 kB / 363.6 MB, free: 15.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/1.861, allocations: 4 kB / 363.6 MB, free: 15.77 MB / 318.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