Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.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_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",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.0009547/0.0009548, allocations: 184 kB / 8.479 MB, free: 1.77 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.013/1.013, allocations: 205.2 MB / 214.1 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008264/0.0008265, allocations: 87.05 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08125/0.08211, allocations: 52.99 MB / 315.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.2475, allocations: 47.56 MB / 362.6 MB, free: 45.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.103/0.3505, allocations: 109.4 MB / 472 MB, free: 8.473 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.3508, allocations: 79.95 kB / 472.1 MB, free: 8.395 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.2476/0.5984, allocations: 56.82 MB / 0.5165 GB, free: 97.34 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.5985, allocations: 10.19 kB / 0.5165 GB, free: 97.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009741/0.5994, allocations: 360.6 kB / 0.5168 GB, free: 97.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.6027, allocations: 1.955 MB / 0.5188 GB, free: 96.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.775e-05/0.6028, allocations: 90.47 kB / 0.5188 GB, free: 96.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003134/0.6031, allocations: 146.1 kB / 0.519 GB, free: 96.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003374/0.6065, allocations: 2.611 MB / 0.5215 GB, free: 96.67 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003673/0.6101, allocations: 3.008 MB / 0.5245 GB, free: 96.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.116e-05/0.6102, allocations: 14.31 kB / 0.5245 GB, free: 96.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001902/0.6104, allocations: 3.969 kB / 0.5245 GB, free: 96.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.476e-05/0.6105, allocations: 114.5 kB / 0.5246 GB, free: 96.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01192/0.6224, allocations: 10.49 MB / 0.5348 GB, free: 90.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.6236, allocations: 1.035 MB / 0.5358 GB, free: 90.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.6247, allocations: 1.091 MB / 0.5369 GB, free: 90.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002444/0.625, allocations: 144.6 kB / 0.537 GB, free: 90.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.625, allocations: 51.75 kB / 0.5371 GB, free: 89.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=136): time 3.136e-06/0.625, allocations: 0 / 0.5371 GB, free: 89.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.007383/0.6324, allocations: 5.032 MB / 0.542 GB, free: 87.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.6324, allocations: 92.17 kB / 0.5421 GB, free: 87.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/0.634, allocations: 1.339 MB / 0.5434 GB, free: 87.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.913e-05/0.6341, allocations: 25.7 kB / 0.5434 GB, free: 87.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.6345, allocations: 0.9624 MB / 0.5444 GB, free: 86.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000268/0.6348, allocations: 493.1 kB / 0.5448 GB, free: 86.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.97e-05/0.6348, allocations: 4 kB / 0.5448 GB, free: 86.11 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.352e-05/0.6349, allocations: 373.8 kB / 0.5452 GB, free: 85.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.6359, allocations: 0.8154 MB / 0.546 GB, free: 85.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.6371, allocations: 1.263 MB / 0.5472 GB, free: 84.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.6383, allocations: 1.003 MB / 0.5482 GB, free: 84.23 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.6384, allocations: 4.969 kB / 0.5482 GB, free: 84.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003742/0.6421, allocations: 2.679 MB / 0.5508 GB, free: 83.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006698/0.6428, allocations: 5.524 MB / 0.5562 GB, free: 77.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/0.6428, allocations: 14.59 kB / 0.5562 GB, free: 77.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/0.6442, allocations: 0.6719 MB / 0.5569 GB, free: 77.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.6457, allocations: 365.1 kB / 0.5572 GB, free: 76.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006343/0.652, allocations: 7.508 MB / 0.5646 GB, free: 70.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.6534, allocations: 63.16 kB / 0.5646 GB, free: 70.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.6536, allocations: 68 kB / 0.5647 GB, free: 70.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.6536, allocations: 4 kB / 0.5647 GB, free: 70.87 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003117/0.6567, allocations: 2.46 MB / 0.5671 GB, free: 68.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.6567, allocations: 16 kB / 0.5671 GB, free: 68.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.658, allocations: 0.6772 MB / 0.5678 GB, free: 68.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.6592, allocations: 356.6 kB / 0.5681 GB, free: 67.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005789/0.665, allocations: 7.501 MB / 0.5755 GB, free: 60.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.6663, allocations: 47.03 kB / 0.5755 GB, free: 60.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.6665, allocations: 75.56 kB / 0.5756 GB, free: 60.56 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * 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: 3 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0003222/0.6668, allocations: 159.1 kB / 0.5757 GB, free: 60.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.6671, allocations: 181.8 kB / 0.5759 GB, free: 60.22 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003345/0.6704, allocations: 2.473 MB / 0.5783 GB, free: 58.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.6704, allocations: 16 kB / 0.5783 GB, free: 58.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6705, allocations: 0 / 0.5783 GB, free: 58.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.6705, allocations: 11.45 kB / 0.5783 GB, free: 58.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006717/0.6772, allocations: 4.901 MB / 0.5831 GB, free: 54.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.6772, allocations: 4.281 kB / 0.5831 GB, free: 54.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.6782, allocations: 231.2 kB / 0.5833 GB, free: 53.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/0.6797, allocations: 0.6966 MB / 0.584 GB, free: 53.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.9e-05/0.6798, allocations: 11.14 kB / 0.584 GB, free: 53.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006676/0.6865, allocations: 8.964 MB / 0.5928 GB, free: 44.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.6865, allocations: 4 kB / 0.5928 GB, free: 44.17 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004028/0.6906, allocations: 3.859 MB / 0.5966 GB, free: 40.2 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005134/0.6957, allocations: 5.515 MB / 0.6019 GB, free: 34.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000827/0.6966, allocations: 458.7 kB / 0.6024 GB, free: 34.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/0.6969, allocations: 8 kB / 0.6024 GB, free: 34.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009585/0.6978, allocations: 59.8 kB / 0.6025 GB, free: 34.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.698, allocations: 93.03 kB / 0.6025 GB, free: 33.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.163e-05/0.6981, allocations: 47.98 kB / 0.6026 GB, free: 33.91 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00119/0.6993, allocations: 1.002 MB / 0.6036 GB, free: 32.91 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003614/0.7029, allocations: 0.9335 MB / 0.6045 GB, free: 31.98 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004611/0.7034, allocations: 393.6 kB / 0.6049 GB, free: 31.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004359/0.7078, allocations: 4.202 MB / 0.609 GB, free: 27.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.7078, allocations: 0 / 0.609 GB, free: 27.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.7094, allocations: 1.567 MB / 0.6105 GB, free: 25.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.7112, allocations: 471.1 kB / 0.6109 GB, free: 25.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007046/0.7183, allocations: 4.503 MB / 0.6153 GB, free: 20.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/0.72, allocations: 2.253 MB / 0.6175 GB, free: 18.46 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.72, allocations: 4 kB / 0.6175 GB, free: 18.45 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)