Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",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.0009635/0.0009634, allocations: 182.2 kB / 8.138 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.09/1.09, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009457/0.0009457, allocations: 102.6 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08609/0.08707, allocations: 55.82 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.2557, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1008/0.3566, allocations: 109.2 MB / 496.2 MB, free: 9.539 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3569, allocations: 92.89 kB / 496.3 MB, free: 9.449 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.2468/0.6037, allocations: 54.03 MB / 0.5374 GB, free: 72.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.6037, allocations: 19.94 kB / 0.5374 GB, free: 72.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.6047, allocations: 332.3 kB / 0.5377 GB, free: 72.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003288/0.608, allocations: 1.778 MB / 0.5395 GB, free: 70.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.548e-05/0.6081, allocations: 71.91 kB / 0.5395 GB, free: 70.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003487/0.6085, allocations: 120 kB / 0.5396 GB, free: 70.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002995/0.6115, allocations: 1.984 MB / 0.5416 GB, free: 68.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00324/0.6147, allocations: 2.335 MB / 0.5439 GB, free: 65.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.519e-05/0.6148, allocations: 0 / 0.5439 GB, free: 65.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/0.615, allocations: 4 kB / 0.5439 GB, free: 65.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.479e-05/0.615, allocations: 91.92 kB / 0.544 GB, free: 65.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01072/0.6258, allocations: 7.993 MB / 0.5518 GB, free: 57.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.627, allocations: 0.9048 MB / 0.5526 GB, free: 56.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009673/0.628, allocations: 0.89 MB / 0.5535 GB, free: 55.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002641/0.6283, allocations: 141.9 kB / 0.5537 GB, free: 55.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.6283, allocations: 47.56 kB / 0.5537 GB, free: 55.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 2.745e-06/0.6283, allocations: 0 / 0.5537 GB, free: 55.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.007668/0.636, allocations: 4.84 MB / 0.5584 GB, free: 50.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.883e-05/0.636, allocations: 64.72 kB / 0.5585 GB, free: 50.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.638, allocations: 1.673 MB / 0.5601 GB, free: 49.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.866e-05/0.6381, allocations: 25.7 kB / 0.5601 GB, free: 49.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002909/0.6384, allocations: 0.7903 MB / 0.5609 GB, free: 48.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00028/0.6387, allocations: 449.2 kB / 0.5613 GB, free: 47.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.635e-05/0.6388, allocations: 0 / 0.5613 GB, free: 47.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.555e-05/0.6389, allocations: 365.9 kB / 0.5617 GB, free: 47.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008325/0.6397, allocations: 0.7029 MB / 0.5624 GB, free: 46.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008916/0.6406, allocations: 0.9471 MB / 0.5633 GB, free: 45.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.6417, allocations: 0.8497 MB / 0.5641 GB, free: 44.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.6417, allocations: 7.938 kB / 0.5641 GB, free: 44.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003852/0.6455, allocations: 2.602 MB / 0.5667 GB, free: 42.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.6456, allocations: 7.125 kB / 0.5667 GB, free: 42.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.6456, allocations: 8 kB / 0.5667 GB, free: 42.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/0.6475, allocations: 0.8386 MB / 0.5675 GB, free: 41.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.6486, allocations: 267.6 kB / 0.5678 GB, free: 41.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008864/0.6575, allocations: 8.456 MB / 0.576 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.6587, allocations: 64 kB / 0.5761 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.6589, allocations: 55.98 kB / 0.5761 GB, free: 32.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002387/0.6592, allocations: 123.5 kB / 0.5763 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003543/0.6595, allocations: 185.7 kB / 0.5764 GB, free: 31.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003626/0.6632, allocations: 2.4 MB / 0.5788 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.6632, allocations: 15.98 kB / 0.5788 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.6632, allocations: 8 kB / 0.5788 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.6632, allocations: 11.97 kB / 0.5788 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006934/0.6702, allocations: 4.647 MB / 0.5834 GB, free: 24.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.6702, allocations: 0 / 0.5834 GB, free: 24.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.6712, allocations: 211.7 kB / 0.5836 GB, free: 24.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001704/0.6729, allocations: 0.6949 MB / 0.5842 GB, free: 23.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.875e-05/0.6731, allocations: 15.98 kB / 0.5843 GB, free: 23.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006852/0.6799, allocations: 7.846 MB / 0.5919 GB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6799, allocations: 8.062 kB / 0.5919 GB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004278/0.6842, allocations: 3.508 MB / 0.5953 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007286/0.6915, allocations: 7.163 MB / 0.6023 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007728/0.6923, allocations: 466.5 kB / 0.6028 GB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000326/0.6926, allocations: 7.984 kB / 0.6028 GB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009653/0.6936, allocations: 63.88 kB / 0.6029 GB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.6938, allocations: 81.12 kB / 0.6029 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-05/0.6939, allocations: 43.97 kB / 0.603 GB, free: 4.262 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001433/0.6953, allocations: 1.278 MB / 0.6042 GB, free: 2.992 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002118/0.6975, allocations: 0.535 MB / 0.6047 GB, free: 2.457 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008746/0.6983, allocations: 0.4971 MB / 0.6052 GB, free: 2.055 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.7013, allocations: 2.212 MB / 0.6074 GB, free: 15.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7013, allocations: 0 / 0.6074 GB, free: 15.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002299/0.7036, allocations: 1.542 MB / 0.6089 GB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/0.7051, allocations: 318.1 kB / 0.6092 GB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007651/0.7128, allocations: 4.34 MB / 0.6134 GB, free: 9.477 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002121/0.7149, allocations: 2.153 MB / 0.6155 GB, free: 7.289 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.715, allocations: 0 / 0.6155 GB, free: 7.289 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1)