Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.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.SMPM_NoLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",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.0009611/0.000961, allocations: 176.6 kB / 8.477 MB, free: 1.84 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.037/1.037, allocations: 205.2 MB / 214.1 MB, free: 5.102 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.0008448/0.0008445, allocations: 99.27 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1411/0.142, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06032/0.2023, allocations: 47.58 MB / 362.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2101/0.4124, allocations: 104.2 MB / 466.8 MB, free: 3.918 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.4127, allocations: 84.86 kB / 466.9 MB, free: 3.906 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.1055/0.5182, allocations: 40.55 MB / 0.4956 GB, free: 3.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.5182, allocations: 8 kB / 0.4956 GB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008552/0.5191, allocations: 241.4 kB / 0.4958 GB, free: 2.922 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002547/0.5216, allocations: 1.278 MB / 0.4971 GB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.536e-05/0.5217, allocations: 48 kB / 0.4971 GB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002669/0.522, allocations: 98.84 kB / 0.4972 GB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002577/0.5246, allocations: 1.479 MB / 0.4987 GB, free: 352 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002826/0.5274, allocations: 1.762 MB / 0.5004 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.978e-05/0.5275, allocations: 7.844 kB / 0.5004 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.5276, allocations: 4 kB / 0.5004 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.528e-05/0.5277, allocations: 78.89 kB / 0.5005 GB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009096/0.5368, allocations: 6.577 MB / 0.5069 GB, free: 7.547 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005151/0.5373, allocations: 387.2 kB / 0.5073 GB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003543/0.5377, allocations: 270 kB / 0.5075 GB, free: 6.898 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002491/0.5402, allocations: 1.432 MB / 0.5089 GB, free: 5.418 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.5402, allocations: 42.5 kB / 0.509 GB, free: 5.367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 2.244e-06/0.5402, allocations: 0 / 0.509 GB, free: 5.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.004612/0.5449, allocations: 2.483 MB / 0.5114 GB, free: 2.812 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.5449, allocations: 59.84 kB / 0.5114 GB, free: 2.742 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/0.5464, allocations: 1.184 MB / 0.5126 GB, free: 1.551 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.5465, allocations: 29.7 kB / 0.5126 GB, free: 1.516 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004706/0.547, allocations: 0.8683 MB / 0.5135 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.5471, allocations: 201.3 kB / 0.5137 GB, free: 444 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.5472, allocations: 0 / 0.5137 GB, free: 444 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5473, allocations: 366.2 kB / 0.514 GB, free: 72 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006284/0.548, allocations: 471.8 kB / 0.5145 GB, free: 15.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.5491, allocations: 1.371 MB / 0.5158 GB, free: 13.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009169/0.55, allocations: 0.75 MB / 0.5165 GB, free: 13.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.869e-06/0.5501, allocations: 8 kB / 0.5165 GB, free: 13.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002658/0.5527, allocations: 1.837 MB / 0.5183 GB, free: 11.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.5527, allocations: 4 kB / 0.5183 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/0.5528, allocations: 36 kB / 0.5184 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000522/0.5533, allocations: 230.8 kB / 0.5186 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.5544, allocations: 379.2 kB / 0.519 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.5559, allocations: 1.638 MB / 0.5206 GB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.557, allocations: 83.61 kB / 0.5206 GB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.5572, allocations: 91.98 kB / 0.5207 GB, free: 8.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * 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: 1 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.5574, allocations: 188.1 kB / 0.5209 GB, free: 8.398 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.5575, allocations: 134.3 kB / 0.521 GB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.5592, allocations: 0.9886 MB / 0.522 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.5592, allocations: 4 kB / 0.522 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5592, allocations: 4 kB / 0.522 GB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.5593, allocations: 7.984 kB / 0.522 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00447/0.5637, allocations: 2.924 MB / 0.5249 GB, free: 4.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5637, allocations: 4 kB / 0.5249 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003946/0.5641, allocations: 91.81 kB / 0.525 GB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006193/0.5648, allocations: 222.4 kB / 0.5252 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.5648, allocations: 7.984 kB / 0.5252 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003267/0.5681, allocations: 3.477 MB / 0.5286 GB, free: 168 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001702/0.5698, allocations: 1.865 MB / 0.5304 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00221/0.572, allocations: 1.776 MB / 0.5321 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002818/0.5749, allocations: 2.612 MB / 0.5347 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005009/0.5754, allocations: 283.2 kB / 0.5349 GB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.5756, allocations: 8.062 kB / 0.535 GB, free: 9.152 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006015/0.5762, allocations: 31.95 kB / 0.535 GB, free: 9.121 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.5763, allocations: 35.89 kB / 0.535 GB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.5763, allocations: 16 kB / 0.535 GB, free: 9.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00117/0.5775, allocations: 0.8563 MB / 0.5359 GB, free: 8.215 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00201/0.5795, allocations: 363.8 kB / 0.5362 GB, free: 7.859 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00042/0.58, allocations: 362.8 kB / 0.5366 GB, free: 7.504 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.5818, allocations: 1.435 MB / 0.538 GB, free: 6.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5818, allocations: 4 kB / 0.538 GB, free: 6.016 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.5829, allocations: 0.7477 MB / 0.5387 GB, free: 5.227 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.5842, allocations: 292.9 kB / 0.539 GB, free: 4.941 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003768/0.5879, allocations: 2.362 MB / 0.5413 GB, free: 2.477 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/0.5893, allocations: 1.603 MB / 0.5428 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5893, allocations: 0 / 0.5428 GB, free: 0.8398 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe 2>&1)