Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",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.0009974/0.0009974, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.023 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.0009176/0.0009175, allocations: 100.5 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08664/0.08758, allocations: 55.83 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.2551, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.3598, allocations: 114.3 MB / 0.4896 GB, free: 4.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.36, allocations: 89.11 kB / 0.4897 GB, free: 4.395 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.3159/0.676, allocations: 88.14 MB / 0.5757 GB, free: 34.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.676, allocations: 8 kB / 0.5757 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001596/0.6776, allocations: 455.7 kB / 0.5762 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003479/0.6811, allocations: 1.965 MB / 0.5781 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.878e-05/0.6812, allocations: 88 kB / 0.5782 GB, free: 31.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003665/0.6816, allocations: 167.9 kB / 0.5783 GB, free: 31.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003782/0.6854, allocations: 2.588 MB / 0.5809 GB, free: 29.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/0.6895, allocations: 3.051 MB / 0.5838 GB, free: 25.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.575e-05/0.6896, allocations: 4 kB / 0.5838 GB, free: 25.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002166/0.6898, allocations: 0 / 0.5838 GB, free: 25.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.739e-05/0.6899, allocations: 125.2 kB / 0.584 GB, free: 25.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01461/0.7045, allocations: 10.78 MB / 0.5945 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.706, allocations: 1.035 MB / 0.5955 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001277/0.7073, allocations: 1.09 MB / 0.5966 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002917/0.7076, allocations: 223.5 kB / 0.5968 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.7076, allocations: 51.78 kB / 0.5968 GB, free: 12.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.156e-06/0.7076, allocations: 0 / 0.5968 GB, free: 12.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.009806/0.7174, allocations: 5.807 MB / 0.6025 GB, free: 6.297 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.1e-05/0.7175, allocations: 68.72 kB / 0.6026 GB, free: 6.219 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/0.7195, allocations: 1.477 MB / 0.604 GB, free: 4.742 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.7197, allocations: 25.7 kB / 0.604 GB, free: 4.711 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003482/0.72, allocations: 1.022 MB / 0.605 GB, free: 3.672 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000293/0.7203, allocations: 0.5196 MB / 0.6055 GB, free: 3.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.428e-05/0.7204, allocations: 3.938 kB / 0.6055 GB, free: 3.141 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.609e-05/0.7205, allocations: 385.8 kB / 0.6059 GB, free: 2.758 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.7215, allocations: 0.8786 MB / 0.6068 GB, free: 1.879 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.7227, allocations: 1.321 MB / 0.6081 GB, free: 376 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.7243, allocations: 1.103 MB / 0.6091 GB, free: 15.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.7243, allocations: 4 kB / 0.6091 GB, free: 15.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004897/0.7292, allocations: 2.899 MB / 0.612 GB, free: 12.35 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.7292, allocations: 8 kB / 0.612 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.521e-05/0.7293, allocations: 12 kB / 0.612 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001652/0.7309, allocations: 0.6235 MB / 0.6126 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.7327, allocations: 439.4 kB / 0.613 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006875/0.7396, allocations: 5.151 MB / 0.618 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.7412, allocations: 79.83 kB / 0.6181 GB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/0.7414, allocations: 68 kB / 0.6182 GB, free: 5.848 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 195 * 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%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002983/0.7417, allocations: 156.4 kB / 0.6183 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000428/0.7421, allocations: 197.6 kB / 0.6185 GB, free: 5.492 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/0.7466, allocations: 2.64 MB / 0.6211 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.7467, allocations: 16 kB / 0.6211 GB, free: 2.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.7467, allocations: 7.906 kB / 0.6211 GB, free: 2.809 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.7467, allocations: 7.969 kB / 0.6211 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008978/0.7557, allocations: 5.357 MB / 0.6264 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/0.7557, allocations: 15.92 kB / 0.6264 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.7571, allocations: 279.9 kB / 0.6266 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/0.759, allocations: 0.6773 MB / 0.6273 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.7591, allocations: 15.98 kB / 0.6273 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008088/0.7672, allocations: 6.75 MB / 0.6339 GB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.7672, allocations: 4 kB / 0.6339 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005787/0.773, allocations: 4.144 MB / 0.638 GB, free: 1.105 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007372/0.7804, allocations: 5.872 MB / 0.6437 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.7815, allocations: 486.5 kB / 0.6442 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004794/0.782, allocations: 8 kB / 0.6442 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/0.7833, allocations: 83.97 kB / 0.6442 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.7835, allocations: 105 kB / 0.6444 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.7837, allocations: 47.98 kB / 0.6444 GB, free: 10.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001784/0.7855, allocations: 1.105 MB / 0.6455 GB, free: 9.281 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002731/0.7882, allocations: 0.578 MB / 0.646 GB, free: 8.703 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 119 * 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%) 27,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000635/0.7888, allocations: 332.4 kB / 0.6464 GB, free: 8.375 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003909/0.7928, allocations: 2.551 MB / 0.6488 GB, free: 5.773 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7928, allocations: 8 kB / 0.6489 GB, free: 5.766 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002485/0.7953, allocations: 1.558 MB / 0.6504 GB, free: 4.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.7972, allocations: 340.5 kB / 0.6507 GB, free: 3.848 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1137/0.9108, allocations: 4.66 MB / 0.6553 GB, free: 131.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002304/0.9132, allocations: 2.338 MB / 0.6575 GB, free: 130.5 MB / 426.7 MB Notification: Performance of SimCode: time 8.02e-07/0.9132, allocations: 3.844 kB / 0.6575 GB, free: 130.5 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1)