Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",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.0009779/0.000978, allocations: 186.4 kB / 8.481 MB, free: 1.762 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.068/1.068, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.0008556/0.0008555, allocations: 90.25 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1504/0.1513, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06085/0.2122, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2272/0.4394, allocations: 112.5 MB / 475.1 MB, free: 12.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.4396, allocations: 90.81 kB / 475.2 MB, free: 12.53 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.1592/0.5989, allocations: 60.3 MB / 0.5229 GB, free: 7.418 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.5989, allocations: 8 kB / 0.523 GB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/0.6005, allocations: 403.5 kB / 0.5233 GB, free: 7.012 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00475/0.6053, allocations: 2.18 MB / 0.5255 GB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.6054, allocations: 92 kB / 0.5256 GB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004727/0.6059, allocations: 171.9 kB / 0.5257 GB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004894/0.6108, allocations: 2.729 MB / 0.5284 GB, free: 1.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005626/0.6164, allocations: 3.235 MB / 0.5315 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.82e-05/0.6165, allocations: 7.906 kB / 0.5315 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002413/0.6168, allocations: 0 / 0.5315 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001208/0.6169, allocations: 141.5 kB / 0.5317 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01846/0.6354, allocations: 11.15 MB / 0.5426 GB, free: 2.789 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.6372, allocations: 1.095 MB / 0.5436 GB, free: 1.684 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.6386, allocations: 0.9958 MB / 0.5446 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003486/0.6389, allocations: 229.1 kB / 0.5448 GB, free: 432 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.639, allocations: 51.81 kB / 0.5449 GB, free: 372 kB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 3.256e-06/0.639, allocations: 4 kB / 0.5449 GB, free: 368 kB / 394.7 MB Notification: Performance of matching and sorting (n=155): time 0.01046/0.6495, allocations: 5.63 MB / 0.5504 GB, free: 10.67 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.6495, allocations: 73.02 kB / 0.5505 GB, free: 10.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002295/0.6518, allocations: 1.489 MB / 0.5519 GB, free: 9.105 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.652, allocations: 25.7 kB / 0.5519 GB, free: 9.074 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005719/0.6526, allocations: 1.107 MB / 0.553 GB, free: 7.949 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003909/0.653, allocations: 0.5119 MB / 0.5535 GB, free: 7.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.751e-05/0.6531, allocations: 0 / 0.5535 GB, free: 7.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.6532, allocations: 381.9 kB / 0.5539 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.6545, allocations: 0.8591 MB / 0.5547 GB, free: 6.191 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.656, allocations: 1.392 MB / 0.5561 GB, free: 4.559 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.6576, allocations: 1.111 MB / 0.5572 GB, free: 3.453 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.6576, allocations: 4 kB / 0.5572 GB, free: 3.449 MB / 410.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004869/0.6625, allocations: 2.865 MB / 0.56 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.6625, allocations: 9.859 kB / 0.56 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/0.6626, allocations: 20.42 kB / 0.56 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.664, allocations: 0.5387 MB / 0.5605 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/0.6657, allocations: 447.2 kB / 0.5609 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006741/0.6725, allocations: 5.703 MB / 0.5665 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.6742, allocations: 79.67 kB / 0.5666 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/0.6744, allocations: 80 kB / 0.5667 GB, free: 9.449 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 212 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003171/0.6747, allocations: 160.3 kB / 0.5668 GB, free: 9.285 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003702/0.6751, allocations: 201.5 kB / 0.567 GB, free: 9.086 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004502/0.6796, allocations: 2.571 MB / 0.5695 GB, free: 6.496 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.6796, allocations: 20 kB / 0.5695 GB, free: 6.477 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.6796, allocations: 4 kB / 0.5695 GB, free: 6.473 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.6797, allocations: 7.969 kB / 0.5696 GB, free: 6.465 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009192/0.6889, allocations: 5.328 MB / 0.5748 GB, free: 1.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.6889, allocations: 4 kB / 0.5748 GB, free: 1.031 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.6901, allocations: 259.6 kB / 0.575 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001574/0.6917, allocations: 0.5886 MB / 0.5756 GB, free: 184 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.6918, allocations: 11.98 kB / 0.5756 GB, free: 172 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1137/0.8055, allocations: 7.315 MB / 0.5827 GB, free: 147.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.8056, allocations: 3.875 kB / 0.5827 GB, free: 147.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004873/0.8105, allocations: 4.091 MB / 0.5867 GB, free: 146.8 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005928/0.8164, allocations: 5.803 MB / 0.5924 GB, free: 145.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009041/0.8173, allocations: 486.7 kB / 0.5929 GB, free: 145.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003177/0.8177, allocations: 11.62 kB / 0.5929 GB, free: 145.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.8187, allocations: 56.67 kB / 0.5929 GB, free: 145.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.8189, allocations: 87.72 kB / 0.593 GB, free: 145.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.819, allocations: 49.81 kB / 0.5931 GB, free: 145.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001428/0.8205, allocations: 1.108 MB / 0.5941 GB, free: 145.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002322/0.8228, allocations: 0.5354 MB / 0.5947 GB, free: 145.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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 {(5,76.0%) 20,(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.0005379/0.8234, allocations: 379.8 kB / 0.595 GB, free: 145.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.8263, allocations: 2.499 MB / 0.5975 GB, free: 145.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.8263, allocations: 0 / 0.5975 GB, free: 145.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.8281, allocations: 1.489 MB / 0.5989 GB, free: 144.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/0.83, allocations: 411.7 kB / 0.5993 GB, free: 144.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007677/0.8377, allocations: 4.652 MB / 0.6039 GB, free: 143.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002102/0.8399, allocations: 2.419 MB / 0.6062 GB, free: 143.1 MB / 426.7 MB Notification: Performance of SimCode: time 8.12e-07/0.8399, allocations: 0 / 0.6062 GB, free: 143.1 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)