Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 110.5 kB / 17.74 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 197.2 kB / 18.68 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 43.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2467, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01353/0.2603, allocations: 11.47 MB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007287/0.2676, allocations: 3.715 MB / 416.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.2693, allocations: 67.69 kB / 416.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.2717, allocations: 0.8658 MB / 417.5 MB, free: 8.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003107/0.2748, allocations: 0.967 MB / 418.5 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.2762, allocations: 490.1 kB / 419 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004296/0.2805, allocations: 3.343 MB / 422.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003784/0.2843, allocations: 2.616 MB / 425 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002312/0.2867, allocations: 1.487 MB / 426.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002963/0.2896, allocations: 1.794 MB / 428.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009559/0.2906, allocations: 392 kB / 428.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.2921, allocations: 483.8 kB / 429.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001662/0.2938, allocations: 1.083 MB / 430.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002969/0.2968, allocations: 1.754 MB / 431.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006179/0.303, allocations: 5.142 MB / 437.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.303, allocations: 0 / 437.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.303, allocations: 0 / 437.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001565/0.3032, allocations: 0 / 437.1 MB, free: 5.051 MB / 350.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.007878/0.3111, allocations: 3.559 MB / 440.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.3111, allocations: 8.031 kB / 440.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008732/0.312, allocations: 366.8 kB / 441 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003205/0.3152, allocations: 1.923 MB / 442.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.3154, allocations: 185 kB / 443.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003747/0.3158, allocations: 251.9 kB / 443.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005662/0.3214, allocations: 3.426 MB / 446.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.58e-05/0.3215, allocations: 11.95 kB / 446.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.3217, allocations: 96 kB / 446.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.3219, allocations: 124.8 kB / 447 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005185/0.3271, allocations: 2.931 MB / 449.9 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01651/0.3436, allocations: 10.79 MB / 460.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003102/0.3468, allocations: 2.429 MB / 463.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.3486, allocations: 1.176 MB / 464.3 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002733/0.3489, allocations: 118.4 kB / 464.4 MB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.349, allocations: 51.88 kB / 464.5 MB, free: 8.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=133): time 3.837e-06/0.349, allocations: 4 kB / 464.5 MB, free: 8.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=147): time 0.01485/0.3639, allocations: 7.294 MB / 471.8 MB, free: 1.484 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.364, allocations: 94.42 kB / 471.9 MB, free: 1.375 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002934/0.3669, allocations: 1.838 MB / 473.7 MB, free: 15.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.367, allocations: 53.64 kB / 473.8 MB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008844/0.3679, allocations: 1.241 MB / 475 MB, free: 14.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004263/0.3683, allocations: 0.519 MB / 475.5 MB, free: 13.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005039/0.3689, allocations: 315.4 kB / 475.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.369, allocations: 301.1 kB / 476.1 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.3703, allocations: 0.8597 MB / 477 MB, free: 12.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.372, allocations: 1.314 MB / 478.3 MB, free: 10.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00302/0.375, allocations: 2.257 MB / 480.6 MB, free: 8.262 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.375, allocations: 4 kB / 480.6 MB, free: 8.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004636/0.3797, allocations: 2.865 MB / 483.4 MB, free: 5.371 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.3797, allocations: 15.98 kB / 483.4 MB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.3797, allocations: 12 kB / 483.5 MB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.3813, allocations: 0.671 MB / 484.1 MB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.3826, allocations: 351.5 kB / 484.5 MB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009809/0.3924, allocations: 9.061 MB / 493.5 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.394, allocations: 111.9 kB / 493.6 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002547/0.3943, allocations: 68 kB / 493.7 MB, free: 10.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002837/0.3972, allocations: 1.593 MB / 495.3 MB, free: 9.066 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001656/0.3988, allocations: 1.31 MB / 496.6 MB, free: 7.559 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003245/0.4021, allocations: 2.229 MB / 498.8 MB, free: 5.137 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.273e-05/0.4021, allocations: 4 kB / 498.8 MB, free: 5.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=218) (initialization_lambda0): time 0.005035/0.4072, allocations: 2.842 MB / 0.4899 GB, free: 2.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.4072, allocations: 12 kB / 0.4899 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/0.4072, allocations: 16 kB / 0.49 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/0.4087, allocations: 0.6796 MB / 0.4906 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.41, allocations: 347.5 kB / 0.4909 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009811/0.4198, allocations: 9.053 MB / 0.4998 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.4214, allocations: 107.8 kB / 0.4999 GB, free: 7.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002072/0.4216, allocations: 76.06 kB / 0.5 GB, free: 7.555 MB / 430.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.0004593/0.4221, allocations: 295.8 kB / 0.5002 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004691/0.4226, allocations: 206.7 kB / 0.5004 GB, free: 7.055 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004391/0.427, allocations: 2.555 MB / 0.5029 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.427, allocations: 11.91 kB / 0.5029 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.427, allocations: 4 kB / 0.503 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009264/0.428, allocations: 483.6 kB / 0.5034 GB, free: 3.965 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003715/0.4283, allocations: 28 kB / 0.5034 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.4294, allocations: 95.98 kB / 0.5035 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.4296, allocations: 113 kB / 0.5036 GB, free: 3.734 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005139/0.4348, allocations: 2.71 MB / 0.5063 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004475/0.4392, allocations: 3.246 MB / 0.5095 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001273/0.4405, allocations: 0.912 MB / 0.5103 GB, free: 12.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002084/0.4426, allocations: 1.26 MB / 0.5116 GB, free: 11.58 MB / 446.1 MB Notification: Performance of Backend: time 3.9e-07/0.4426, allocations: 0 / 0.5116 GB, free: 11.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00635/0.449, allocations: 3.91 MB / 0.5154 GB, free: 7.551 MB / 446.1 MB Notification: Performance of SimCode: time 0.01012/0.4591, allocations: 5.828 MB / 0.5211 GB, free: 1.676 MB / 446.1 MB Notification: Performance of Templates: time 0.2525/0.7117, allocations: 46.43 MB / 0.5664 GB, free: 113 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1)