Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") [: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.001248/0.001248, allocations: 186.1 kB / 8.136 MB, free: 2.199 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.293/1.293, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0008909/0.0008912, allocations: 109.3 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.324e-06/7.344e-06, allocations: 0 / 336.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2635, allocations: 50.38 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1417/0.4053, allocations: 115.8 MB / 0.491 GB, free: 2.879 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.4057, allocations: 93.59 kB / 0.4911 GB, free: 2.789 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3467/0.7524, allocations: 76.09 MB / 0.5654 GB, free: 44.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002498/0.7526, allocations: 83.88 kB / 0.5655 GB, free: 44.62 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.008556/0.7612, allocations: 3.219 MB / 0.5686 GB, free: 41.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.7613, allocations: 12.03 kB / 0.5686 GB, free: 41.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003633/0.7649, allocations: 0.6045 MB / 0.5692 GB, free: 40.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007397/0.7723, allocations: 3.135 MB / 0.5723 GB, free: 37.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.7725, allocations: 107.9 kB / 0.5724 GB, free: 37.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005692/0.773, allocations: 176 kB / 0.5725 GB, free: 37.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00528/0.7783, allocations: 3.125 MB / 0.5756 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006569/0.7849, allocations: 3.64 MB / 0.5791 GB, free: 30.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-05/0.785, allocations: 7.938 kB / 0.5792 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002795/0.7853, allocations: 4 kB / 0.5792 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.7854, allocations: 150.1 kB / 0.5793 GB, free: 30.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02051/0.806, allocations: 13.28 MB / 0.5923 GB, free: 16.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.8074, allocations: 1.118 MB / 0.5934 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.8091, allocations: 1.328 MB / 0.5947 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005056/0.8142, allocations: 3.192 MB / 0.5978 GB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.8143, allocations: 47.88 kB / 0.5978 GB, free: 10.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=164): time 3.737e-06/0.8143, allocations: 0 / 0.5978 GB, free: 10.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=168): time 0.00823/0.8225, allocations: 4.906 MB / 0.6026 GB, free: 5.734 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.8226, allocations: 99.11 kB / 0.6027 GB, free: 5.621 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.8247, allocations: 1.409 MB / 0.6041 GB, free: 4.215 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001805/0.8249, allocations: 25.7 kB / 0.6041 GB, free: 4.184 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004326/0.8253, allocations: 1.153 MB / 0.6052 GB, free: 3.012 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003384/0.8256, allocations: 0.5389 MB / 0.6058 GB, free: 2.465 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.631e-05/0.8257, allocations: 0 / 0.6058 GB, free: 2.465 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.8258, allocations: 381.8 kB / 0.6061 GB, free: 2.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.8269, allocations: 0.8005 MB / 0.6069 GB, free: 1.285 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.8281, allocations: 1.329 MB / 0.6082 GB, free: 15.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.8298, allocations: 1.048 MB / 0.6092 GB, free: 14.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.8298, allocations: 7.938 kB / 0.6092 GB, free: 14.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.004698/0.8345, allocations: 2.773 MB / 0.6119 GB, free: 11.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002076/0.8366, allocations: 6.521 MB / 0.6183 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.734e-05/0.8367, allocations: 16 kB / 0.6183 GB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.838, allocations: 0.5224 MB / 0.6188 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/0.8398, allocations: 407.3 kB / 0.6192 GB, free: 3.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006933/0.8467, allocations: 6.668 MB / 0.6257 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.8487, allocations: 47.88 kB / 0.6258 GB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003972/0.8491, allocations: 83.98 kB / 0.6259 GB, free: 12.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.8491, allocations: 4 kB / 0.6259 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005022/0.8542, allocations: 2.539 MB / 0.6283 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-05/0.8542, allocations: 16.41 kB / 0.6284 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/0.8554, allocations: 0.5186 MB / 0.6289 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/0.8572, allocations: 399.4 kB / 0.6292 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007519/0.8648, allocations: 6.675 MB / 0.6358 GB, free: 2.098 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002647/0.8675, allocations: 43.86 kB / 0.6358 GB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006235/0.8681, allocations: 80 kB / 0.6359 GB, free: 1.977 MB / 410.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: 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 (214): * Single equations (assignments): 210 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0008773/0.869, allocations: 160.3 kB / 0.636 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000715/0.8697, allocations: 209.6 kB / 0.6362 GB, free: 1.605 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005288/0.875, allocations: 2.611 MB / 0.6388 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.8751, allocations: 16 kB / 0.6388 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/0.8751, allocations: 4 kB / 0.6388 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/0.8751, allocations: 11.97 kB / 0.6388 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/0.8869, allocations: 5.392 MB / 0.6441 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.887, allocations: 0 / 0.6441 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.8881, allocations: 215.7 kB / 0.6443 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.8899, allocations: 0.6604 MB / 0.6449 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001342/0.89, allocations: 23.92 kB / 0.645 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1657/1.056, allocations: 10.47 MB / 0.6552 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.056, allocations: 3.906 kB / 0.6552 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005333/1.061, allocations: 4.06 MB / 0.6591 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/1.062, allocations: 471.4 kB / 0.6596 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003295/1.063, allocations: 13.12 kB / 0.6596 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/1.064, allocations: 51.72 kB / 0.6597 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/1.064, allocations: 92.84 kB / 0.6597 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/1.064, allocations: 45.84 kB / 0.6598 GB, free: 120.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001559/1.065, allocations: 1.059 MB / 0.6608 GB, free: 120 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003388/1.069, allocations: 0.9951 MB / 0.6618 GB, free: 120 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (117): * Single equations (assignments): 112 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006169/1.069, allocations: 444.3 kB / 0.6622 GB, free: 119.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005319/1.075, allocations: 4.22 MB / 0.6663 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.075, allocations: 3.406 kB / 0.6663 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002294/1.077, allocations: 1.689 MB / 0.668 GB, free: 118.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/1.08, allocations: 483.9 kB / 0.6685 GB, free: 118.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009113/1.089, allocations: 4.849 MB / 0.6732 GB, free: 117.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002044/1.091, allocations: 2.496 MB / 0.6756 GB, free: 116.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.343e-06/1.091, allocations: 3.406 kB / 0.6756 GB, free: 116.7 MB / 426.7 MB Notification: Performance of Templates: time 0.07469/1.166, allocations: 45.44 MB / 0.72 GB, free: 113 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1)