Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_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 4.0.0+maint.om/package.mo): time 0.001345/0.001344, allocations: 178.9 kB / 8.135 MB, free: 0.8711 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.14/1.14, allocations: 221.4 MB / 229.9 MB, free: 13.48 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000931/0.000931, allocations: 100.1 kB / 280.8 MB, free: 10.56 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09207/0.09304, allocations: 55.83 MB / 336.6 MB, free: 2.738 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07763/0.1707, allocations: 50.41 MB / 387 MB, free: 284 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.3916, allocations: 104.9 MB / 492 MB, free: 8.668 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.3919, allocations: 90.2 kB / 492 MB, free: 8.582 MB / 370.8 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.1224/0.5143, allocations: 47.79 MB / 0.5272 GB, free: 8.898 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.5143, allocations: 8 kB / 0.5272 GB, free: 8.891 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007902/0.5151, allocations: 296.7 kB / 0.5275 GB, free: 8.598 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003195/0.5183, allocations: 1.609 MB / 0.529 GB, free: 6.93 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.134e-05/0.5184, allocations: 68 kB / 0.5291 GB, free: 6.863 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002986/0.5187, allocations: 131.9 kB / 0.5292 GB, free: 6.734 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003543/0.5223, allocations: 2.039 MB / 0.5312 GB, free: 4.688 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004008/0.5263, allocations: 2.425 MB / 0.5336 GB, free: 2.125 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.659e-05/0.5264, allocations: 15.91 kB / 0.5336 GB, free: 2.109 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001741/0.5266, allocations: 0 / 0.5336 GB, free: 2.109 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.5267, allocations: 100.2 kB / 0.5337 GB, free: 2.008 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.113/0.6397, allocations: 8.236 MB / 0.5417 GB, free: 142.6 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.6409, allocations: 0.8621 MB / 0.5426 GB, free: 142.6 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009968/0.6419, allocations: 0.8384 MB / 0.5434 GB, free: 142.5 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002801/0.6422, allocations: 210.2 kB / 0.5436 GB, free: 142.3 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.6422, allocations: 53.75 kB / 0.5437 GB, free: 142.3 MB / 418.8 MB Notification: Performance of pre-optimization done (n=106): time 3.326e-06/0.6423, allocations: 0 / 0.5437 GB, free: 142.3 MB / 418.8 MB Notification: Performance of matching and sorting (n=128): time 0.007791/0.6501, allocations: 4.816 MB / 0.5484 GB, free: 141.6 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.337e-05/0.6501, allocations: 65.12 kB / 0.5484 GB, free: 141.5 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.6513, allocations: 1.035 MB / 0.5494 GB, free: 141.4 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 7.826e-05/0.6514, allocations: 25.7 kB / 0.5495 GB, free: 141.4 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002803/0.6517, allocations: 0.8218 MB / 0.5503 GB, free: 141 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.6519, allocations: 432.6 kB / 0.5507 GB, free: 140.8 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.652, allocations: 3.594 kB / 0.5507 GB, free: 140.8 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 7.508e-05/0.6521, allocations: 369.9 kB / 0.551 GB, free: 140.5 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008183/0.6529, allocations: 0.7003 MB / 0.5517 GB, free: 140.5 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009232/0.6538, allocations: 1.058 MB / 0.5527 GB, free: 140.1 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.6549, allocations: 0.8796 MB / 0.5536 GB, free: 140 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.6549, allocations: 3.938 kB / 0.5536 GB, free: 140 MB / 418.8 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003387/0.6583, allocations: 2.395 MB / 0.556 GB, free: 139.9 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.6583, allocations: 3.562 kB / 0.556 GB, free: 139.9 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.6584, allocations: 13.66 kB / 0.556 GB, free: 139.9 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.6597, allocations: 0.5824 MB / 0.5565 GB, free: 139.8 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.661, allocations: 330.2 kB / 0.5569 GB, free: 139.8 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005798/0.6668, allocations: 5.795 MB / 0.5625 GB, free: 137.4 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/0.6681, allocations: 67.36 kB / 0.5626 GB, free: 137.4 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.6683, allocations: 64.81 kB / 0.5626 GB, free: 137.4 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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,75.0%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002435/0.6685, allocations: 143.6 kB / 0.5628 GB, free: 137.3 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002412/0.6687, allocations: 147.7 kB / 0.5629 GB, free: 137.2 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/0.6721, allocations: 2.211 MB / 0.5651 GB, free: 137.1 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.6721, allocations: 14.94 kB / 0.5651 GB, free: 137.1 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.6721, allocations: 7.375 kB / 0.5651 GB, free: 137.1 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.6722, allocations: 11.2 kB / 0.5651 GB, free: 137.1 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006357/0.6785, allocations: 4.37 MB / 0.5694 GB, free: 136.6 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.6786, allocations: 3.25 kB / 0.5694 GB, free: 136.6 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009401/0.6795, allocations: 212.7 kB / 0.5696 GB, free: 136.6 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/0.6811, allocations: 0.6289 MB / 0.5702 GB, free: 136.6 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.6812, allocations: 18 kB / 0.5702 GB, free: 136.6 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006657/0.6879, allocations: 7.416 MB / 0.5775 GB, free: 132.3 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.6879, allocations: 4.719 kB / 0.5775 GB, free: 132.3 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004517/0.6924, allocations: 3.435 MB / 0.5808 GB, free: 130.8 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005947/0.6984, allocations: 4.867 MB / 0.5856 GB, free: 128.5 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008041/0.6992, allocations: 379.9 kB / 0.5859 GB, free: 128.2 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/0.6995, allocations: 18.86 kB / 0.5859 GB, free: 128.2 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009087/0.7004, allocations: 63.25 kB / 0.586 GB, free: 128.2 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.7006, allocations: 75.41 kB / 0.5861 GB, free: 128.2 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-05/0.7007, allocations: 36.41 kB / 0.5861 GB, free: 128.2 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.001043/0.7018, allocations: 0.7802 MB / 0.5869 GB, free: 127.9 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.002095/0.7039, allocations: 467.5 kB / 0.5873 GB, free: 127.8 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (100): * Single equations (assignments): 97 * 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.0004445/0.7043, allocations: 297.9 kB / 0.5876 GB, free: 127.7 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.002948/0.7073, allocations: 2.165 MB / 0.5897 GB, free: 126.8 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.7073, allocations: 0 / 0.5897 GB, free: 126.8 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001955/0.7093, allocations: 1.365 MB / 0.591 GB, free: 126.2 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.7106, allocations: 276.2 kB / 0.5913 GB, free: 126.1 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005889/0.7165, allocations: 3.703 MB / 0.5949 GB, free: 123.3 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/0.718, allocations: 1.974 MB / 0.5969 GB, free: 121.6 MB / 418.8 MB Notification: Performance of SimCode: time 5.31e-07/0.718, allocations: 0 / 0.5969 GB, free: 121.6 MB / 418.8 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1)