Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001111/0.001111, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 64.17 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08689, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01262/0.09954, allocations: 11.5 MB / 369.1 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1649/0.2644, allocations: 3.754 MB / 372.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/0.2662, allocations: 67.5 kB / 372.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002472/0.2687, allocations: 0.8207 MB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002731/0.2714, allocations: 0.9262 MB / 374.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.2725, allocations: 0.4885 MB / 375.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003048/0.2756, allocations: 3.337 MB / 378.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002557/0.2781, allocations: 2.622 MB / 381.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002148/0.2803, allocations: 1.475 MB / 382.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.2826, allocations: 1.801 MB / 384.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000576/0.2832, allocations: 391.8 kB / 384.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.2842, allocations: 490 kB / 385.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009927/0.2852, allocations: 1.085 MB / 386.3 MB, free: 6.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001753/0.287, allocations: 1.756 MB / 388.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003952/0.291, allocations: 5.074 MB / 393.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.291, allocations: 2.062 kB / 393.2 MB, free: 2.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.291, allocations: 0 / 393.2 MB, free: 2.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.425e-05/0.2911, allocations: 0 / 393.2 MB, free: 2.242 MB / 302.1 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.006593/0.2977, allocations: 3.483 MB / 396.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.2977, allocations: 9.125 kB / 396.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004859/0.2982, allocations: 365.3 kB / 397 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009407/0.2992, allocations: 354.5 kB / 397.3 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.3021, allocations: 1.848 MB / 399.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.3022, allocations: 185.9 kB / 399.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003255/0.3025, allocations: 258.5 kB / 399.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005138/0.3077, allocations: 3.423 MB / 403.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-05/0.3077, allocations: 11.91 kB / 403.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002441/0.308, allocations: 104 kB / 403.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001113/0.3081, allocations: 124.7 kB / 403.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004679/0.3128, allocations: 2.927 MB / 406.2 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01542/0.3282, allocations: 10.87 MB / 417.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002736/0.331, allocations: 2.44 MB / 419.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001816/0.3328, allocations: 1.181 MB / 420.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002381/0.3331, allocations: 132.8 kB / 420.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.3331, allocations: 47.88 kB / 420.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 2.885e-06/0.3331, allocations: 0 / 420.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.0151/0.3482, allocations: 7.249 MB / 428.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.3483, allocations: 94.42 kB / 428.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/0.3512, allocations: 1.84 MB / 430.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.3513, allocations: 53.7 kB / 430.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008803/0.3522, allocations: 1.219 MB / 431.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004542/0.3527, allocations: 0.4903 MB / 431.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005486/0.3532, allocations: 311.3 kB / 432.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3533, allocations: 305.1 kB / 432.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.3547, allocations: 0.8636 MB / 433.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.3564, allocations: 1.319 MB / 434.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.3594, allocations: 2.25 MB / 436.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.3594, allocations: 8 kB / 436.9 MB, free: 8.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004553/0.3639, allocations: 2.856 MB / 439.7 MB, free: 5.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.364, allocations: 12 kB / 439.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.364, allocations: 19.88 kB / 439.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.3655, allocations: 0.6683 MB / 440.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.3668, allocations: 363.4 kB / 440.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009837/0.3767, allocations: 9.053 MB / 449.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.3784, allocations: 107.8 kB / 449.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/0.3786, allocations: 68 kB / 450 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002643/0.3812, allocations: 1.585 MB / 451.6 MB, free: 9.484 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001608/0.3828, allocations: 1.31 MB / 452.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00297/0.3858, allocations: 2.229 MB / 455.1 MB, free: 5.562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.1e-05/0.3858, allocations: 4 kB / 455.1 MB, free: 5.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization_lambda0): time 0.004767/0.3906, allocations: 2.837 MB / 458 MB, free: 2.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.3907, allocations: 12 kB / 458 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/0.3907, allocations: 16 kB / 458 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.3922, allocations: 0.6833 MB / 458.7 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.3934, allocations: 351.4 kB / 459 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009711/0.4031, allocations: 9.059 MB / 468.1 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.4048, allocations: 107.8 kB / 468.2 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.405, allocations: 79.98 kB / 468.3 MB, free: 7.973 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_n.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,9,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0004536/0.4054, allocations: 291.6 kB / 468.5 MB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005675/0.406, allocations: 201.5 kB / 468.7 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004589/0.4106, allocations: 2.559 MB / 471.3 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.4106, allocations: 15.98 kB / 471.3 MB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.4106, allocations: 7.938 kB / 471.3 MB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.4107, allocations: 3.984 kB / 471.3 MB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009719/0.4204, allocations: 5.436 MB / 476.8 MB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.986e-06/0.4204, allocations: 4 kB / 476.8 MB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.4215, allocations: 227.9 kB / 477 MB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001828/0.4233, allocations: 0.6906 MB / 477.7 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.4235, allocations: 31.98 kB / 477.7 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.011/0.4345, allocations: 10.65 MB / 488.4 MB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/0.4345, allocations: 8.078 kB / 488.4 MB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006252/0.4408, allocations: 3.762 MB / 492.1 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.442, allocations: 466.5 kB / 492.6 MB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005678/0.4426, allocations: 32 kB / 492.6 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.444, allocations: 95.88 kB / 492.7 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/0.4443, allocations: 121 kB / 492.8 MB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.4444, allocations: 39.98 kB / 492.9 MB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002289/0.4467, allocations: 1.26 MB / 494.1 MB, free: 13.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4467, allocations: 0 / 494.1 MB, free: 13.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003846/0.4506, allocations: 0.9961 MB / 495.1 MB, free: 12.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006329/0.4569, allocations: 4.41 MB / 499.5 MB, free: 7.883 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008378/0.4653, allocations: 5.182 MB / 0.4929 GB, free: 2.586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.655e-06/0.4654, allocations: 4 kB / 0.4929 GB, free: 2.582 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002457/0.4678, allocations: 1.738 MB / 0.4946 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003684/0.4715, allocations: 0.6286 MB / 0.4952 GB, free: 188 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03638/0.5079, allocations: 23.01 MB / 0.5177 GB, free: 7.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002309/0.5103, allocations: 2.099 MB / 0.5197 GB, free: 5.297 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001923/0.5122, allocations: 0.5912 MB / 0.5203 GB, free: 4.703 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/0.5135, allocations: 0.9718 MB / 0.5213 GB, free: 3.73 MB / 446.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5136, allocations: 0 / 0.5213 GB, free: 3.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2339/0.7475, allocations: 62.32 MB / 0.5821 GB, free: 109.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.16, allocations: 3.938 kB / 0.5821 GB, free: 109.1 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.csv --start-time 0 --stop-time 0.8 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1)