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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000941/0.000941, allocations: 174.1 kB / 8.473 MB, free: 1.867 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.078/1.078, allocations: 205.2 MB / 214.1 MB, free: 5.074 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008618/0.0008618, allocations: 82.27 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1668/0.1677, allocations: 52.96 MB / 315 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07185/0.2396, allocations: 47.58 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2366/0.4763, allocations: 80.97 MB / 443.6 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.4765, allocations: 68.66 kB / 443.7 MB, free: 10.73 MB / 314.7 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.0214/0.4979, allocations: 8.68 MB / 452.4 MB, free: 8.074 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.498, allocations: 7.688 kB / 452.4 MB, free: 8.074 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.4981, allocations: 50.38 kB / 452.4 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.4986, allocations: 357.1 kB / 452.8 MB, free: 7.762 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.4986, allocations: 11.69 kB / 452.8 MB, free: 7.762 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.428e-05/0.4987, allocations: 27.19 kB / 452.8 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004239/0.4991, allocations: 249.2 kB / 453 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005534/0.4997, allocations: 339.1 kB / 453.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.4997, allocations: 3.906 kB / 453.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.4998, allocations: 0 / 453.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.4998, allocations: 11.22 kB / 453.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.5016, allocations: 1.592 MB / 455 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.5019, allocations: 173.1 kB / 455.1 MB, free: 6.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.5021, allocations: 102.1 kB / 455.2 MB, free: 6.422 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.5021, allocations: 11.95 kB / 455.3 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.5022, allocations: 34.06 kB / 455.3 MB, free: 6.375 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.5022, allocations: 0 / 455.3 MB, free: 6.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001404/0.5036, allocations: 0.9381 MB / 456.2 MB, free: 5.777 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.5037, allocations: 84.67 kB / 456.3 MB, free: 5.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.5039, allocations: 282.9 kB / 456.6 MB, free: 5.551 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.504, allocations: 25.7 kB / 456.6 MB, free: 5.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.504, allocations: 203.3 kB / 456.8 MB, free: 5.359 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.5041, allocations: 113.3 kB / 456.9 MB, free: 5.273 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.564e-05/0.5041, allocations: 0 / 456.9 MB, free: 5.273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.934e-05/0.5042, allocations: 349.6 kB / 457.3 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.5044, allocations: 104 kB / 457.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.5045, allocations: 185.6 kB / 457.5 MB, free: 4.848 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.5047, allocations: 128 kB / 457.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.5047, allocations: 0 / 457.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000452/0.5052, allocations: 347.8 kB / 458 MB, free: 4.727 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.5053, allocations: 0.7892 MB / 458.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.5054, allocations: 0 / 458.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.5054, allocations: 3.844 kB / 458.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009205/0.5063, allocations: 290.4 kB / 459.1 MB, free: 3.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004436/0.5068, allocations: 0.6885 MB / 459.8 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003469/0.5071, allocations: 46.42 kB / 459.8 MB, free: 3.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.5072, allocations: 14.91 kB / 459.8 MB, free: 3.184 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/0.5072, allocations: 3.75 kB / 459.8 MB, free: 3.184 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004145/0.5076, allocations: 283.7 kB / 460.1 MB, free: 3.137 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.5076, allocations: 2.5 kB / 460.1 MB, free: 3.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.5076, allocations: 8.906 kB / 460.1 MB, free: 3.133 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005305/0.5082, allocations: 137.6 kB / 460.3 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.5082, allocations: 4.031 kB / 460.3 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002997/0.5085, allocations: 43.06 kB / 460.3 MB, free: 3.082 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.5085, allocations: 13.94 kB / 460.3 MB, free: 3.082 MB / 314.7 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 () * 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 9.126e-05/0.5086, allocations: 116.6 kB / 460.4 MB, free: 2.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.5087, allocations: 40.73 kB / 460.5 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.494e-05/0.5088, allocations: 38.92 kB / 460.5 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.5088, allocations: 2.688 kB / 460.5 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.5088, allocations: 1.312 kB / 460.5 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5088, allocations: 0 / 460.5 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009519/0.5098, allocations: 0.7511 MB / 461.3 MB, free: 2.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.5098, allocations: 1.219 kB / 461.3 MB, free: 2.504 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004702/0.5103, allocations: 102.5 kB / 461.4 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.5103, allocations: 2.5 kB / 461.4 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.5103, allocations: 6.578 kB / 461.4 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.5103, allocations: 2.594 kB / 461.4 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5104, allocations: 1.281 kB / 461.4 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006323/0.511, allocations: 0.5422 MB / 461.9 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000848/0.5118, allocations: 1.044 MB / 463 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.512, allocations: 136.8 kB / 463.1 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.924e-05/0.512, allocations: 2.531 kB / 463.1 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000332/0.5124, allocations: 46.8 kB / 463.1 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.5125, allocations: 21.5 kB / 463.2 MB, free: 1.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.5125, allocations: 14.72 kB / 463.2 MB, free: 1.383 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002865/0.5128, allocations: 222 kB / 463.4 MB, free: 17.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00178/0.5146, allocations: 124.5 kB / 463.5 MB, free: 17.28 MB / 330.7 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 () * 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.0001847/0.5148, allocations: 107.7 kB / 463.6 MB, free: 17.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.5163, allocations: 0.6304 MB / 464.3 MB, free: 17.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5163, allocations: 7.938 kB / 464.3 MB, free: 17.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.5165, allocations: 126.2 kB / 464.4 MB, free: 17.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006221/0.5172, allocations: 83.23 kB / 464.5 MB, free: 17.03 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.5191, allocations: 0.81 MB / 465.3 MB, free: 16.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006368/0.5198, allocations: 0.879 MB / 466.2 MB, free: 15.76 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5198, allocations: 0 / 466.2 MB, free: 15.76 MB / 330.7 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) 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