Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 196.7 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 226.6 MB / 244.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008136/0.0008136, allocations: 106.9 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002207/0.0002209, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.204, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.01041/0.2145, allocations: 14.3 MB / 421.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008257/0.2228, allocations: 5.023 MB / 426.8 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.2245, allocations: 91.62 kB / 426.9 MB, free: 8.363 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001817/0.2263, allocations: 0.8194 MB / 427.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002097/0.2284, allocations: 1.076 MB / 428.8 MB, free: 6.457 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.2297, allocations: 0.6647 MB / 429.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00281/0.2326, allocations: 3.989 MB / 433.5 MB, free: 1.793 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00206/0.2346, allocations: 2.209 MB / 435.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001444/0.2361, allocations: 1.288 MB / 437 MB, free: 14.26 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.2378, allocations: 1.63 MB / 438.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000305/0.2381, allocations: 200 kB / 438.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008795/0.239, allocations: 419.7 kB / 439.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006299/0.2397, allocations: 0.7902 MB / 440 MB, free: 11.22 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006164/0.2403, allocations: 0.742 MB / 440.7 MB, free: 10.47 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004367/0.2447, allocations: 5.286 MB / 446 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.2447, allocations: 0 / 446 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.048e-06/0.2447, allocations: 0 / 446 MB, free: 5.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.41e-05/0.2448, allocations: 3.938 kB / 446 MB, free: 5.168 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.007583/0.2524, allocations: 3.72 MB / 449.7 MB, free: 1.375 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2524, allocations: 12.03 kB / 449.8 MB, free: 1.363 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002588/0.255, allocations: 0.6396 MB / 450.4 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003624/0.2587, allocations: 2.204 MB / 452.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.2588, allocations: 238.2 kB / 452.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004232/0.2593, allocations: 303.9 kB / 453.1 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006785/0.2661, allocations: 4.169 MB / 457.3 MB, free: 9.668 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.584e-05/0.2661, allocations: 3.906 kB / 457.3 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002775/0.2664, allocations: 128 kB / 457.4 MB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.2666, allocations: 142.1 kB / 457.6 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005715/0.2723, allocations: 3.557 MB / 461.1 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01786/0.2902, allocations: 13.96 MB / 475.1 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005422/0.2956, allocations: 6.17 MB / 481.3 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001983/0.2976, allocations: 1.393 MB / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004956/0.3026, allocations: 3.348 MB / 486 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.3026, allocations: 43.88 kB / 486 MB, free: 11.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 2.645e-06/0.3027, allocations: 0 / 486 MB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=140): time 0.01155/0.3142, allocations: 6.555 MB / 492.6 MB, free: 4.867 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.3143, allocations: 94.42 kB / 492.7 MB, free: 4.758 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.3166, allocations: 1.931 MB / 494.6 MB, free: 2.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.3167, allocations: 53.7 kB / 494.7 MB, free: 2.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008901/0.3176, allocations: 1.451 MB / 496.1 MB, free: 1.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003111/0.3179, allocations: 481.1 kB / 496.6 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.855e-05/0.318, allocations: 36 kB / 496.6 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3181, allocations: 377.9 kB / 497 MB, free: 380 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.3192, allocations: 0.7418 MB / 497.7 MB, free: 15.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.3207, allocations: 1.283 MB / 499 MB, free: 14.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.322, allocations: 0.9276 MB / 499.9 MB, free: 13.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.322, allocations: 8 kB / 500 MB, free: 13.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003845/0.3259, allocations: 2.678 MB / 0.4909 GB, free: 10.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003362/0.3262, allocations: 0.5754 MB / 0.4914 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.3262, allocations: 19.98 kB / 0.4914 GB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.3273, allocations: 0.5029 MB / 0.4919 GB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.3286, allocations: 367.4 kB / 0.4923 GB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006675/0.3353, allocations: 7.045 MB / 0.4992 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.3367, allocations: 99.89 kB / 0.4992 GB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.3368, allocations: 72 kB / 0.4993 GB, free: 1.141 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.625e-06/0.3368, allocations: 6.812 kB / 0.4993 GB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1588/0.4956, allocations: 2.445 MB / 0.5017 GB, free: 87.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.554e-05/0.4957, allocations: 16.86 kB / 0.5017 GB, free: 87.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.4969, allocations: 0.5005 MB / 0.5022 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.4983, allocations: 366.5 kB / 0.5026 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005821/0.5041, allocations: 7.036 MB / 0.5094 GB, free: 82.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.5056, allocations: 94.25 kB / 0.5095 GB, free: 82.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.5057, allocations: 79.03 kB / 0.5096 GB, free: 82.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 187 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001644/0.5074, allocations: 1.065 MB / 0.5106 GB, free: 81.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003212/0.5077, allocations: 212.7 kB / 0.5108 GB, free: 81.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003724/0.5114, allocations: 2.431 MB / 0.5132 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/0.5114, allocations: 13.75 kB / 0.5132 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.5115, allocations: 4.281 kB / 0.5132 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.5115, allocations: 11.73 kB / 0.5132 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006175/0.5177, allocations: 5.272 MB / 0.5184 GB, free: 78.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.5177, allocations: 7.156 kB / 0.5184 GB, free: 78.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007182/0.5184, allocations: 180.6 kB / 0.5186 GB, free: 78.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.5196, allocations: 0.632 MB / 0.5192 GB, free: 78.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.227e-05/0.5197, allocations: 35.34 kB / 0.5192 GB, free: 78.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007879/0.5276, allocations: 11.08 MB / 0.53 GB, free: 68.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5276, allocations: 4.031 kB / 0.5301 GB, free: 68.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004258/0.5319, allocations: 3.556 MB / 0.5335 GB, free: 64.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007419/0.5326, allocations: 464.8 kB / 0.534 GB, free: 64.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.5329, allocations: 32 kB / 0.534 GB, free: 64.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008847/0.5338, allocations: 83.08 kB / 0.5341 GB, free: 64.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.534, allocations: 113.1 kB / 0.5342 GB, free: 63.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.175e-05/0.5341, allocations: 47.89 kB / 0.5342 GB, free: 63.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001624/0.5357, allocations: 1.31 MB / 0.5355 GB, free: 62.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5357, allocations: 0 / 0.5355 GB, free: 62.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002893/0.5386, allocations: 1.073 MB / 0.5366 GB, free: 61.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,inertiaLoad.phi) * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 87 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000313/0.5389, allocations: 173.1 kB / 0.5367 GB, free: 61.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004691/0.5436, allocations: 4.12 MB / 0.5407 GB, free: 57.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5437, allocations: 0 / 0.5407 GB, free: 57.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001933/0.5456, allocations: 1.745 MB / 0.5424 GB, free: 55.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/0.5481, allocations: 0.6339 MB / 0.5431 GB, free: 54.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007549/0.5556, allocations: 6.999 MB / 0.5499 GB, free: 47.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.5571, allocations: 2.287 MB / 0.5521 GB, free: 45.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004223/0.5575, allocations: 147.4 kB / 0.5523 GB, free: 45.22 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5575, allocations: 4 kB / 0.5523 GB, free: 45.21 MB / 378.7 MB Notification: Performance of Templates: time 0.09929/0.6568, allocations: 111.7 MB / 0.6613 GB, free: 13.53 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1)