Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",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.001008/0.001008, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.121/1.121, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008582/0.0008583, allocations: 93.03 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09416/0.09505, allocations: 56.91 MB / 343.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08206/0.1771, allocations: 51.47 MB / 394.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2372/0.4144, allocations: 114.2 MB / 0.497 GB, free: 11.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.4146, allocations: 85.7 kB / 0.4971 GB, free: 11.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.3453/0.76, allocations: 85.01 MB / 0.5801 GB, free: 82.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.76, allocations: 7.188 kB / 0.5801 GB, free: 82.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001445/0.7615, allocations: 473.3 kB / 0.5806 GB, free: 82.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/0.7641, allocations: 1.861 MB / 0.5824 GB, free: 82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.101e-05/0.7642, allocations: 86.34 kB / 0.5825 GB, free: 82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002673/0.7645, allocations: 154.2 kB / 0.5826 GB, free: 81.99 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003196/0.7677, allocations: 2.347 MB / 0.5849 GB, free: 81.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003607/0.7713, allocations: 2.815 MB / 0.5876 GB, free: 81.61 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.039e-05/0.7714, allocations: 10.28 kB / 0.5877 GB, free: 81.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001958/0.7716, allocations: 7.047 kB / 0.5877 GB, free: 81.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-05/0.7717, allocations: 107.5 kB / 0.5878 GB, free: 81.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0124/0.7841, allocations: 10.02 MB / 0.5975 GB, free: 79.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.7852, allocations: 0.9367 MB / 0.5985 GB, free: 79.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009954/0.7863, allocations: 0.9151 MB / 0.5994 GB, free: 79.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002664/0.7865, allocations: 218.5 kB / 0.5996 GB, free: 78.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.7866, allocations: 49.09 kB / 0.5996 GB, free: 78.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=120): time 3.046e-06/0.7866, allocations: 0 / 0.5996 GB, free: 78.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=146): time 0.008913/0.7955, allocations: 5.514 MB / 0.605 GB, free: 77.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.463e-05/0.7955, allocations: 68.34 kB / 0.6051 GB, free: 77.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.7971, allocations: 1.386 MB / 0.6064 GB, free: 77.69 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.11e-05/0.7972, allocations: 25.7 kB / 0.6064 GB, free: 77.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003034/0.7975, allocations: 0.9891 MB / 0.6074 GB, free: 77.07 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002454/0.7977, allocations: 488 kB / 0.6079 GB, free: 76.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.911e-05/0.7978, allocations: 0 / 0.6079 GB, free: 76.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.834e-05/0.7979, allocations: 378 kB / 0.6082 GB, free: 76.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009264/0.7988, allocations: 0.8052 MB / 0.609 GB, free: 76.44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.8, allocations: 1.278 MB / 0.6103 GB, free: 75.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.8012, allocations: 1.02 MB / 0.6113 GB, free: 75.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.8012, allocations: 7.531 kB / 0.6113 GB, free: 75.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003742/0.805, allocations: 2.715 MB / 0.6139 GB, free: 75.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.805, allocations: 13.59 kB / 0.6139 GB, free: 75.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/0.805, allocations: 21.14 kB / 0.614 GB, free: 75.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.8064, allocations: 0.5813 MB / 0.6145 GB, free: 75.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.8079, allocations: 409.3 kB / 0.6149 GB, free: 75.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005475/0.8134, allocations: 4.91 MB / 0.6197 GB, free: 73.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.8148, allocations: 84.23 kB / 0.6198 GB, free: 73.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.8149, allocations: 75.02 kB / 0.6199 GB, free: 73.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002291/0.8152, allocations: 152.4 kB / 0.62 GB, free: 73.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.8154, allocations: 191.4 kB / 0.6202 GB, free: 72.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/0.819, allocations: 2.451 MB / 0.6226 GB, free: 72.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.819, allocations: 14.44 kB / 0.6226 GB, free: 72.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.819, allocations: 3.812 kB / 0.6226 GB, free: 72.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.819, allocations: 10.95 kB / 0.6226 GB, free: 72.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006834/0.8259, allocations: 5.018 MB / 0.6275 GB, free: 70.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/0.8259, allocations: 3.938 kB / 0.6275 GB, free: 70.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.827, allocations: 253 kB / 0.6278 GB, free: 70.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.8285, allocations: 0.6428 MB / 0.6284 GB, free: 69.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.8287, allocations: 23.66 kB / 0.6284 GB, free: 69.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006738/0.8354, allocations: 6.498 MB / 0.6348 GB, free: 65.99 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.8354, allocations: 6 kB / 0.6348 GB, free: 65.99 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005261/0.8407, allocations: 3.928 MB / 0.6386 GB, free: 64.13 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00639/0.8471, allocations: 5.542 MB / 0.644 GB, free: 61.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008424/0.848, allocations: 449.5 kB / 0.6444 GB, free: 61.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002911/0.8483, allocations: 15.91 kB / 0.6444 GB, free: 61.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.8494, allocations: 83.84 kB / 0.6445 GB, free: 61.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.8496, allocations: 93.83 kB / 0.6446 GB, free: 61.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/0.8497, allocations: 44.36 kB / 0.6447 GB, free: 61.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001525/0.8512, allocations: 1.04 MB / 0.6457 GB, free: 60.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002586/0.8538, allocations: 0.5464 MB / 0.6462 GB, free: 60.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006168/0.8545, allocations: 344.5 kB / 0.6465 GB, free: 60.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003603/0.8581, allocations: 2.387 MB / 0.6489 GB, free: 59.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.8581, allocations: 1.5 kB / 0.6489 GB, free: 59.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002212/0.8603, allocations: 1.472 MB / 0.6503 GB, free: 58.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.8619, allocations: 299.9 kB / 0.6506 GB, free: 58.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/0.8687, allocations: 4.196 MB / 0.6547 GB, free: 57.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/0.8705, allocations: 2.201 MB / 0.6568 GB, free: 56.05 MB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/0.8705, allocations: 0 / 0.6568 GB, free: 56.05 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1)