Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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 trunk/package.mo): time 0.001173/0.001173, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.124/1.124, allocations: 225.5 MB / 234.4 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009158/0.0009158, allocations: 103.2 kB / 286.4 MB, free: 12.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09595/0.0969, allocations: 56.88 MB / 343.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.2835, allocations: 51.46 MB / 394.7 MB, free: 33.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0964/0.3799, allocations: 94.44 MB / 489.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.3802, allocations: 79.95 kB / 489.2 MB, free: 2.477 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.1972/0.5774, allocations: 23.71 MB / 0.5009 GB, free: 91.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.5775, allocations: 7.531 kB / 0.5009 GB, free: 91.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005113/0.578, allocations: 149.9 kB / 0.5011 GB, free: 91.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.5791, allocations: 0.6823 MB / 0.5017 GB, free: 91.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.5791, allocations: 31.31 kB / 0.5018 GB, free: 91.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.588e-05/0.5792, allocations: 49 kB / 0.5018 GB, free: 91.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007071/0.5799, allocations: 433.7 kB / 0.5022 GB, free: 91.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008761/0.5808, allocations: 0.6227 MB / 0.5028 GB, free: 91.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.5808, allocations: 13.44 kB / 0.5028 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.853e-05/0.5809, allocations: 0 / 0.5028 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.5809, allocations: 24.28 kB / 0.5029 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/0.5842, allocations: 3.306 MB / 0.5061 GB, free: 89.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.5844, allocations: 121.5 kB / 0.5062 GB, free: 89.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.5845, allocations: 95.02 kB / 0.5063 GB, free: 89.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.5845, allocations: 2.875 kB / 0.5063 GB, free: 89.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.5846, allocations: 34.38 kB / 0.5063 GB, free: 89.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.494e-06/0.5846, allocations: 0 / 0.5063 GB, free: 89.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001068/0.5856, allocations: 0.7522 MB / 0.5071 GB, free: 89.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.5857, allocations: 82.06 kB / 0.5071 GB, free: 89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/0.5863, allocations: 0.5222 MB / 0.5077 GB, free: 88.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.5863, allocations: 29.08 kB / 0.5077 GB, free: 88.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.5865, allocations: 426 kB / 0.5081 GB, free: 88.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.875e-05/0.5865, allocations: 101.3 kB / 0.5082 GB, free: 88.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/0.5865, allocations: 0.5938 kB / 0.5082 GB, free: 88.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.279e-05/0.5866, allocations: 374.2 kB / 0.5085 GB, free: 88.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.5868, allocations: 93.12 kB / 0.5086 GB, free: 88.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.5871, allocations: 380.8 kB / 0.509 GB, free: 87.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.5873, allocations: 160.2 kB / 0.5091 GB, free: 87.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.5873, allocations: 3.406 kB / 0.5092 GB, free: 87.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007089/0.588, allocations: 0.4967 MB / 0.5096 GB, free: 87.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.5881, allocations: 9.562 kB / 0.5096 GB, free: 87.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.5881, allocations: 7.844 kB / 0.5097 GB, free: 87.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.5882, allocations: 34.05 kB / 0.5097 GB, free: 87.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.5887, allocations: 150 kB / 0.5098 GB, free: 87.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006814/0.5894, allocations: 1.254 MB / 0.5111 GB, free: 86.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.5898, allocations: 31.36 kB / 0.5111 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.5899, allocations: 29.75 kB / 0.5111 GB, free: 86.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.75e-05/0.59, allocations: 126.7 kB / 0.5112 GB, free: 86.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.961e-05/0.5901, allocations: 67.16 kB / 0.5113 GB, free: 86.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003807/0.5904, allocations: 264.2 kB / 0.5115 GB, free: 85.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.5905, allocations: 0 / 0.5115 GB, free: 85.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.5905, allocations: 3.656 kB / 0.5116 GB, free: 85.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.5905, allocations: 4 kB / 0.5116 GB, free: 85.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009825/0.5915, allocations: 0.9124 MB / 0.5124 GB, free: 85.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5915, allocations: 0 / 0.5124 GB, free: 85.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002714/0.5918, allocations: 64 kB / 0.5125 GB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.416e-05/0.5918, allocations: 24.42 kB / 0.5125 GB, free: 85.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.5919, allocations: 5.656 kB / 0.5125 GB, free: 85.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005335/0.5924, allocations: 1.223 MB / 0.5137 GB, free: 84.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5924, allocations: 7.875 kB / 0.5137 GB, free: 84.14 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004632/0.5929, allocations: 0.5513 MB / 0.5143 GB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006101/0.5935, allocations: 1.027 MB / 0.5153 GB, free: 82.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.5937, allocations: 160 kB / 0.5154 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.719e-05/0.5938, allocations: 7.281 kB / 0.5154 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/0.5941, allocations: 26.17 kB / 0.5155 GB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/0.5942, allocations: 18.52 kB / 0.5155 GB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.5942, allocations: 11.28 kB / 0.5155 GB, free: 82.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003742/0.5946, allocations: 402.2 kB / 0.5159 GB, free: 82.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001152/0.5957, allocations: 172.9 kB / 0.516 GB, free: 82.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003381/0.5961, allocations: 253 kB / 0.5163 GB, free: 82.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005631/0.5966, allocations: 389.8 kB / 0.5167 GB, free: 82.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5967, allocations: 3.844 kB / 0.5167 GB, free: 82.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002237/0.5969, allocations: 201.6 kB / 0.5168 GB, free: 81.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.5976, allocations: 152.5 kB / 0.517 GB, free: 81.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.5994, allocations: 0.995 MB / 0.518 GB, free: 81.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004616/0.5999, allocations: 1.01 MB / 0.519 GB, free: 80.66 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5999, allocations: 0 / 0.519 GB, free: 80.66 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat