Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_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.001023/0.001023, allocations: 182.9 kB / 8.135 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.095/1.095, allocations: 221.4 MB / 229.9 MB, free: 3.145 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.0009345/0.0009344, allocations: 98.48 kB / 280.8 MB, free: 1.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08801/0.08898, allocations: 55.83 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.2611, allocations: 50.39 MB / 387 MB, free: 38.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.102/0.3631, allocations: 108.3 MB / 495.3 MB, free: 10.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.3633, allocations: 87.89 kB / 495.4 MB, free: 10.48 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.2415/0.6048, allocations: 51.69 MB / 0.5342 GB, free: 75.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.6049, allocations: 8 kB / 0.5342 GB, free: 75.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.6059, allocations: 320.5 kB / 0.5345 GB, free: 75.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003045/0.6089, allocations: 1.702 MB / 0.5362 GB, free: 73.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.721e-05/0.609, allocations: 72 kB / 0.5363 GB, free: 73.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003295/0.6094, allocations: 139.9 kB / 0.5364 GB, free: 73.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003106/0.6125, allocations: 2.114 MB / 0.5385 GB, free: 71.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003462/0.616, allocations: 2.527 MB / 0.5409 GB, free: 68.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-05/0.616, allocations: 11.91 kB / 0.5409 GB, free: 68.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001785/0.6162, allocations: 0 / 0.5409 GB, free: 68.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.096e-05/0.6163, allocations: 108.3 kB / 0.541 GB, free: 68.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/0.6274, allocations: 8.74 MB / 0.5496 GB, free: 59.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.6285, allocations: 0.8532 MB / 0.5504 GB, free: 58.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.6295, allocations: 0.8656 MB / 0.5513 GB, free: 58.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002661/0.6298, allocations: 218.8 kB / 0.5515 GB, free: 57.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/0.6299, allocations: 43.56 kB / 0.5515 GB, free: 57.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=110): time 2.826e-06/0.6299, allocations: 0 / 0.5515 GB, free: 57.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=134): time 0.007859/0.6377, allocations: 4.976 MB / 0.5564 GB, free: 52.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.97e-05/0.6378, allocations: 68.72 kB / 0.5564 GB, free: 52.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.6391, allocations: 1.125 MB / 0.5575 GB, free: 51.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.936e-05/0.6391, allocations: 25.7 kB / 0.5576 GB, free: 51.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/0.6394, allocations: 0.8764 MB / 0.5584 GB, free: 50.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.6397, allocations: 449.3 kB / 0.5588 GB, free: 50.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.497e-05/0.6397, allocations: 0 / 0.5588 GB, free: 50.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.541e-05/0.6398, allocations: 373.8 kB / 0.5592 GB, free: 49.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008241/0.6406, allocations: 0.7301 MB / 0.5599 GB, free: 49.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009492/0.6416, allocations: 1.121 MB / 0.561 GB, free: 47.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.6427, allocations: 0.9197 MB / 0.5619 GB, free: 46.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.6427, allocations: 4 kB / 0.5619 GB, free: 46.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.003383/0.6461, allocations: 2.482 MB / 0.5643 GB, free: 44.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.6461, allocations: 4.281 kB / 0.5643 GB, free: 44.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.6461, allocations: 16 kB / 0.5644 GB, free: 44.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.6474, allocations: 0.5802 MB / 0.5649 GB, free: 43.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.6488, allocations: 355.5 kB / 0.5653 GB, free: 43.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005902/0.6547, allocations: 6.099 MB / 0.5712 GB, free: 37.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.656, allocations: 75.83 kB / 0.5713 GB, free: 36.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.6561, allocations: 64 kB / 0.5713 GB, free: 36.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002329/0.6564, allocations: 149.7 kB / 0.5715 GB, free: 36.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.6566, allocations: 158 kB / 0.5716 GB, free: 36.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/0.6599, allocations: 2.275 MB / 0.5739 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.6599, allocations: 12 kB / 0.5739 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.6599, allocations: 8 kB / 0.5739 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.66, allocations: 11.88 kB / 0.5739 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006194/0.6662, allocations: 4.552 MB / 0.5783 GB, free: 29.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.6662, allocations: 7.938 kB / 0.5783 GB, free: 29.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009493/0.6671, allocations: 220.1 kB / 0.5786 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001498/0.6687, allocations: 0.6351 MB / 0.5792 GB, free: 28.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.055e-05/0.6688, allocations: 15.98 kB / 0.5792 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00693/0.6757, allocations: 7.705 MB / 0.5867 GB, free: 20.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.6757, allocations: 7.906 kB / 0.5867 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00428/0.68, allocations: 3.557 MB / 0.5902 GB, free: 17 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005089/0.6851, allocations: 5.047 MB / 0.5951 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007002/0.6859, allocations: 402.9 kB / 0.5955 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.6861, allocations: 12 kB / 0.5955 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009276/0.687, allocations: 67.92 kB / 0.5956 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.6872, allocations: 85.05 kB / 0.5957 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-05/0.6873, allocations: 39.98 kB / 0.5957 GB, free: 11.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009758/0.6883, allocations: 0.8439 MB / 0.5965 GB, free: 10.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001986/0.6903, allocations: 496 kB / 0.597 GB, free: 9.863 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * 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%) 23,(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.0004415/0.6907, allocations: 343 kB / 0.5973 GB, free: 9.551 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.6934, allocations: 2.215 MB / 0.5995 GB, free: 7.297 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.6934, allocations: 4 kB / 0.5995 GB, free: 7.293 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.6953, allocations: 1.388 MB / 0.6009 GB, free: 5.879 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.6967, allocations: 332.7 kB / 0.6012 GB, free: 5.559 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005604/0.7023, allocations: 3.904 MB / 0.605 GB, free: 1.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001643/0.704, allocations: 2.034 MB / 0.607 GB, free: 15.5 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/0.704, allocations: 0 / 0.607 GB, free: 15.5 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1)