Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",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.0009699/0.0009699, allocations: 189.2 kB / 8.139 MB, free: 2.211 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.113/1.113, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0009397/0.0009397, allocations: 101.1 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08904/0.09001, allocations: 55.83 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.2602, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1047/0.365, allocations: 109.4 MB / 496.4 MB, free: 9.285 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.3652, allocations: 88.95 kB / 496.5 MB, free: 9.199 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.246/0.6112, allocations: 54.86 MB / 0.5385 GB, free: 71.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.6113, allocations: 11.94 kB / 0.5385 GB, free: 71.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000762/0.6121, allocations: 356 kB / 0.5388 GB, free: 71.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003044/0.6151, allocations: 1.922 MB / 0.5407 GB, free: 69.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.823e-05/0.6152, allocations: 88 kB / 0.5408 GB, free: 69.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.6155, allocations: 143.9 kB / 0.5409 GB, free: 69.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00328/0.6188, allocations: 2.396 MB / 0.5433 GB, free: 66.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003696/0.6225, allocations: 2.86 MB / 0.546 GB, free: 63.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.521e-05/0.6225, allocations: 7.906 kB / 0.5461 GB, free: 63.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001953/0.6227, allocations: 4 kB / 0.5461 GB, free: 63.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.72e-05/0.6228, allocations: 116.9 kB / 0.5462 GB, free: 63.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/0.6342, allocations: 10 MB / 0.5559 GB, free: 53.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.6352, allocations: 0.9045 MB / 0.5568 GB, free: 52.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009205/0.6362, allocations: 0.7808 MB / 0.5576 GB, free: 51.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002648/0.6364, allocations: 223 kB / 0.5578 GB, free: 51.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.6365, allocations: 47.56 kB / 0.5578 GB, free: 51.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 2.725e-06/0.6365, allocations: 0 / 0.5578 GB, free: 51.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=138): time 0.00818/0.6447, allocations: 5.199 MB / 0.5629 GB, free: 46.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.897e-05/0.6447, allocations: 64.72 kB / 0.563 GB, free: 45.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.6461, allocations: 1.308 MB / 0.5643 GB, free: 44.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.647e-05/0.6462, allocations: 25.7 kB / 0.5643 GB, free: 44.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.6466, allocations: 1.017 MB / 0.5653 GB, free: 43.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002155/0.6468, allocations: 465.2 kB / 0.5657 GB, free: 43.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.79e-05/0.6469, allocations: 0 / 0.5657 GB, free: 43.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.667e-05/0.647, allocations: 377.8 kB / 0.5661 GB, free: 42.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008876/0.6479, allocations: 0.7771 MB / 0.5668 GB, free: 41.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.6489, allocations: 1.283 MB / 0.5681 GB, free: 40.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.6501, allocations: 1.013 MB / 0.5691 GB, free: 39.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.6501, allocations: 4 kB / 0.5691 GB, free: 39.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.002927/0.653, allocations: 2.386 MB / 0.5714 GB, free: 37.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.6531, allocations: 4 kB / 0.5714 GB, free: 37.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.6531, allocations: 16 kB / 0.5714 GB, free: 37.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005285/0.6536, allocations: 235.6 kB / 0.5717 GB, free: 36.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.6552, allocations: 439.3 kB / 0.5721 GB, free: 36.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.6569, allocations: 2.84 MB / 0.5749 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.6581, allocations: 75.67 kB / 0.5749 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.6582, allocations: 79.98 kB / 0.575 GB, free: 33.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00022/0.6585, allocations: 148.5 kB / 0.5751 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/0.6587, allocations: 173.8 kB / 0.5753 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002746/0.6614, allocations: 2.082 MB / 0.5773 GB, free: 30.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.6615, allocations: 16 kB / 0.5774 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.6615, allocations: 0 / 0.5774 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.6615, allocations: 12.05 kB / 0.5774 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006119/0.6676, allocations: 4.543 MB / 0.5818 GB, free: 26.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.6676, allocations: 4.281 kB / 0.5818 GB, free: 26.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.6689, allocations: 287.6 kB / 0.5821 GB, free: 25.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004714/0.6694, allocations: 199.3 kB / 0.5823 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.888e-05/0.6694, allocations: 8 kB / 0.5823 GB, free: 25.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.671, allocations: 2.82 MB / 0.585 GB, free: 22.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.671, allocations: 0 / 0.585 GB, free: 22.5 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003471/0.6745, allocations: 3.44 MB / 0.5884 GB, free: 18.94 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004569/0.6791, allocations: 5.05 MB / 0.5933 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007266/0.6798, allocations: 426.8 kB / 0.5937 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002659/0.6801, allocations: 11.89 kB / 0.5937 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009195/0.681, allocations: 59.98 kB / 0.5938 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.6812, allocations: 73.28 kB / 0.5939 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.395e-05/0.6813, allocations: 36 kB / 0.5939 GB, free: 13.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001161/0.6825, allocations: 0.9735 MB / 0.5949 GB, free: 12.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002964/0.6854, allocations: 479.9 kB / 0.5953 GB, free: 11.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004918/0.6859, allocations: 413.1 kB / 0.5957 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002614/0.6886, allocations: 2.337 MB / 0.598 GB, free: 8.941 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.6886, allocations: 0 / 0.598 GB, free: 8.941 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.69, allocations: 1.352 MB / 0.5993 GB, free: 7.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.6916, allocations: 356.9 kB / 0.5997 GB, free: 7.176 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00594/0.6975, allocations: 3.966 MB / 0.6035 GB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001811/0.6993, allocations: 2.225 MB / 0.6057 GB, free: 0.875 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6993, allocations: 4 kB / 0.6057 GB, free: 0.8711 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)