Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009756/0.0009756, allocations: 182.1 kB / 8.133 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.102/1.102, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008908/0.0008908, allocations: 96.75 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08744/0.08835, allocations: 55.82 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.2614, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1058/0.3673, allocations: 113.4 MB / 0.4887 GB, free: 5.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.3675, allocations: 91.89 kB / 0.4887 GB, free: 5.254 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.319/0.6865, allocations: 84.9 MB / 0.5717 GB, free: 38.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.6866, allocations: 15.94 kB / 0.5717 GB, free: 38.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001627/0.6882, allocations: 431.9 kB / 0.5721 GB, free: 37.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/0.6917, allocations: 1.862 MB / 0.5739 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-05/0.6918, allocations: 80 kB / 0.574 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004673/0.6923, allocations: 144 kB / 0.5741 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004056/0.6964, allocations: 2.357 MB / 0.5764 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004223/0.7006, allocations: 2.811 MB / 0.5792 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.888e-05/0.7007, allocations: 3.938 kB / 0.5792 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/0.7009, allocations: 7.984 kB / 0.5792 GB, free: 30.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.936e-05/0.701, allocations: 112.9 kB / 0.5793 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01366/0.7147, allocations: 10.03 MB / 0.5891 GB, free: 19.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.7159, allocations: 0.9396 MB / 0.59 GB, free: 18.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.7169, allocations: 0.9144 MB / 0.5909 GB, free: 18.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002811/0.7172, allocations: 223.1 kB / 0.5911 GB, free: 17.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.7173, allocations: 51.56 kB / 0.5912 GB, free: 17.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 2.966e-06/0.7173, allocations: 3.938 kB / 0.5912 GB, free: 17.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=146): time 0.00894/0.7262, allocations: 5.507 MB / 0.5965 GB, free: 12.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.7263, allocations: 68.72 kB / 0.5966 GB, free: 12.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/0.7278, allocations: 1.383 MB / 0.5979 GB, free: 10.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.642e-05/0.7279, allocations: 29.7 kB / 0.598 GB, free: 10.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/0.7282, allocations: 0.9821 MB / 0.5989 GB, free: 9.688 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/0.7285, allocations: 492.7 kB / 0.5994 GB, free: 9.199 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.217e-05/0.7286, allocations: 0 / 0.5994 GB, free: 9.199 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.7287, allocations: 377.8 kB / 0.5998 GB, free: 8.824 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009031/0.7296, allocations: 0.8044 MB / 0.6006 GB, free: 8.016 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.7306, allocations: 1.287 MB / 0.6018 GB, free: 6.523 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.7318, allocations: 1.017 MB / 0.6028 GB, free: 5.508 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.7318, allocations: 8 kB / 0.6028 GB, free: 5.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003678/0.7355, allocations: 2.716 MB / 0.6055 GB, free: 2.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.7355, allocations: 11.12 kB / 0.6055 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/0.7356, allocations: 16 kB / 0.6055 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.7369, allocations: 0.5843 MB / 0.6061 GB, free: 2.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.7384, allocations: 411.3 kB / 0.6065 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006192/0.7446, allocations: 4.899 MB / 0.6112 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.7462, allocations: 83.83 kB / 0.6113 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.7464, allocations: 79.98 kB / 0.6114 GB, free: 12.57 MB / 394.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.0002888/0.7467, allocations: 155.3 kB / 0.6115 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.747, allocations: 185.7 kB / 0.6117 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004146/0.7512, allocations: 2.447 MB / 0.6141 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.7512, allocations: 12 kB / 0.6141 GB, free: 9.754 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.7512, allocations: 8 kB / 0.6141 GB, free: 9.746 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.7512, allocations: 7.891 kB / 0.6141 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008042/0.7593, allocations: 5.028 MB / 0.619 GB, free: 4.602 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/0.7593, allocations: 8.109 kB / 0.6191 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.7605, allocations: 255.7 kB / 0.6193 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00171/0.7622, allocations: 0.6378 MB / 0.6199 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.7623, allocations: 23.97 kB / 0.6199 GB, free: 3.676 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007662/0.77, allocations: 6.492 MB / 0.6263 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.77, allocations: 4 kB / 0.6263 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005536/0.7755, allocations: 3.934 MB / 0.6301 GB, free: 8.832 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006885/0.7824, allocations: 5.541 MB / 0.6355 GB, free: 3.113 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009052/0.7834, allocations: 450.7 kB / 0.636 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003037/0.7837, allocations: 15.98 kB / 0.636 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.7848, allocations: 84.28 kB / 0.6361 GB, free: 2.555 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.785, allocations: 89.09 kB / 0.6361 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.7852, allocations: 43.98 kB / 0.6362 GB, free: 2.426 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001431/0.7866, allocations: 1.044 MB / 0.6372 GB, free: 1.387 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002293/0.7889, allocations: 0.5429 MB / 0.6377 GB, free: 0.8438 MB / 410.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.0005256/0.7894, allocations: 337.9 kB / 0.6381 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003536/0.793, allocations: 2.381 MB / 0.6404 GB, free: 14.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.793, allocations: 4 kB / 0.6404 GB, free: 14.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.7953, allocations: 1.473 MB / 0.6418 GB, free: 12.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.7969, allocations: 303.9 kB / 0.6421 GB, free: 12.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007562/0.8044, allocations: 4.208 MB / 0.6462 GB, free: 7.977 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/0.8065, allocations: 2.201 MB / 0.6484 GB, free: 5.742 MB / 426.7 MB Notification: Performance of SimCode: time 4.5e-07/0.8065, allocations: 0 / 0.6484 GB, free: 5.742 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1)