Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",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 3.2.3+maint.om/package.mo): time 0.0009355/0.0009355, allocations: 184.5 kB / 8.479 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.027/1.027, allocations: 205.2 MB / 214.1 MB, free: 5.227 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008496/0.0008496, allocations: 84.81 kB / 262.1 MB, free: 5.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1413/0.1422, allocations: 52.98 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05764/0.1999, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.3999, allocations: 104.6 MB / 467.3 MB, free: 3.539 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.4001, allocations: 83.7 kB / 467.4 MB, free: 3.527 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.1183/0.5185, allocations: 47.61 MB / 0.5029 GB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.5185, allocations: 8 kB / 0.5029 GB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000855/0.5194, allocations: 300.7 kB / 0.5032 GB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/0.5224, allocations: 1.608 MB / 0.5048 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.098e-05/0.5225, allocations: 68 kB / 0.5048 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/0.5228, allocations: 127.9 kB / 0.5049 GB, free: 9.875 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003249/0.526, allocations: 2.047 MB / 0.5069 GB, free: 7.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003529/0.5296, allocations: 2.437 MB / 0.5093 GB, free: 5.246 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.348e-05/0.5296, allocations: 7.906 kB / 0.5093 GB, free: 5.238 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001676/0.5298, allocations: 3.984 kB / 0.5093 GB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-05/0.5299, allocations: 100.2 kB / 0.5094 GB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.5412, allocations: 8.25 MB / 0.5175 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.5425, allocations: 0.8538 MB / 0.5183 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.5437, allocations: 0.8391 MB / 0.5191 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002988/0.544, allocations: 219.1 kB / 0.5194 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.544, allocations: 43.56 kB / 0.5194 GB, free: 10.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=106): time 2.645e-06/0.544, allocations: 4 kB / 0.5194 GB, free: 10.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.008275/0.5523, allocations: 4.786 MB / 0.5241 GB, free: 5.801 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.5524, allocations: 64.72 kB / 0.5241 GB, free: 5.723 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.5536, allocations: 1.041 MB / 0.5252 GB, free: 4.676 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.557e-05/0.5537, allocations: 25.7 kB / 0.5252 GB, free: 4.645 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003862/0.5541, allocations: 0.8293 MB / 0.526 GB, free: 3.801 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000286/0.5544, allocations: 425.6 kB / 0.5264 GB, free: 3.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-05/0.5545, allocations: 0 / 0.5264 GB, free: 3.379 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.5546, allocations: 365.9 kB / 0.5267 GB, free: 3.016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009251/0.5555, allocations: 0.6951 MB / 0.5274 GB, free: 2.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.5567, allocations: 1.065 MB / 0.5285 GB, free: 1.098 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.5578, allocations: 0.8767 MB / 0.5293 GB, free: 228 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5578, allocations: 8 kB / 0.5293 GB, free: 220 kB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003664/0.5615, allocations: 2.382 MB / 0.5316 GB, free: 13.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.5615, allocations: 8.25 kB / 0.5317 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.5615, allocations: 12 kB / 0.5317 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.5629, allocations: 0.5762 MB / 0.5322 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.5642, allocations: 343.4 kB / 0.5326 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006442/0.5707, allocations: 5.774 MB / 0.5382 GB, free: 6.859 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.5717, allocations: 67.92 kB / 0.5383 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.5718, allocations: 63.98 kB / 0.5383 GB, free: 6.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002237/0.572, allocations: 144.5 kB / 0.5385 GB, free: 6.582 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.5723, allocations: 150.2 kB / 0.5386 GB, free: 6.434 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003571/0.5759, allocations: 2.199 MB / 0.5408 GB, free: 4.215 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.5759, allocations: 19.94 kB / 0.5408 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.5759, allocations: 4 kB / 0.5408 GB, free: 4.191 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.5759, allocations: 11.88 kB / 0.5408 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006721/0.5826, allocations: 4.334 MB / 0.545 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.5827, allocations: 4 kB / 0.545 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009583/0.5836, allocations: 212 kB / 0.5452 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00162/0.5853, allocations: 0.6355 MB / 0.5458 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.689e-05/0.5854, allocations: 11.98 kB / 0.5459 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007732/0.5931, allocations: 7.419 MB / 0.5531 GB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5931, allocations: 0 / 0.5531 GB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004525/0.5977, allocations: 3.405 MB / 0.5564 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005715/0.6034, allocations: 4.836 MB / 0.5611 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006603/0.6041, allocations: 383.1 kB / 0.5615 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002319/0.6043, allocations: 19.92 kB / 0.5615 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008592/0.6052, allocations: 59.94 kB / 0.5616 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.6053, allocations: 68.8 kB / 0.5617 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.336e-05/0.6054, allocations: 39.98 kB / 0.5617 GB, free: 14.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0009942/0.6064, allocations: 0.7782 MB / 0.5625 GB, free: 13.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001892/0.6083, allocations: 464 kB / 0.5629 GB, free: 12.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004346/0.6088, allocations: 301.6 kB / 0.5632 GB, free: 12.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003022/0.6118, allocations: 2.147 MB / 0.5653 GB, free: 10.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6118, allocations: 0 / 0.5653 GB, free: 10.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.6139, allocations: 1.364 MB / 0.5666 GB, free: 8.996 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.6152, allocations: 293.7 kB / 0.5669 GB, free: 8.711 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006/0.6212, allocations: 3.701 MB / 0.5705 GB, free: 4.922 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001748/0.6229, allocations: 1.97 MB / 0.5724 GB, free: 2.922 MB / 426.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6229, allocations: 0 / 0.5724 GB, free: 2.922 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)