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.001004/0.001004, allocations: 114.3 kB / 17.75 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.001231/0.001231, allocations: 185.3 kB / 18.68 MB, free: 4.41 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 47.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2253, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01185/0.2372, allocations: 11.48 MB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006014/0.2433, allocations: 3.707 MB / 416.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.2444, allocations: 67.69 kB / 416.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001981/0.2464, allocations: 0.8619 MB / 417.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002491/0.2489, allocations: 0.9709 MB / 418.5 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.25, allocations: 491.2 kB / 419 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003139/0.2532, allocations: 3.347 MB / 422.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002697/0.2559, allocations: 2.62 MB / 425 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.2575, allocations: 1.484 MB / 426.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.2595, allocations: 1.798 MB / 428.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004824/0.26, allocations: 396 kB / 428.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000783/0.2608, allocations: 479.8 kB / 429.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009504/0.2617, allocations: 1.079 MB / 430.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001588/0.2633, allocations: 1.758 MB / 431.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004123/0.2675, allocations: 5.117 MB / 437 MB, free: 5.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2675, allocations: 7.875 kB / 437 MB, free: 5.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2675, allocations: 0 / 437 MB, free: 5.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.461e-05/0.2676, allocations: 0 / 437 MB, free: 5.031 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.005936/0.2735, allocations: 3.48 MB / 440.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2735, allocations: 12.03 kB / 440.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007607/0.2743, allocations: 345 kB / 440.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.2774, allocations: 1.906 MB / 442.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.2775, allocations: 188.9 kB / 443 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003543/0.2779, allocations: 255.9 kB / 443.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005211/0.2831, allocations: 3.422 MB / 446.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.418e-05/0.2832, allocations: 7.906 kB / 446.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.2834, allocations: 100 kB / 446.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001167/0.2835, allocations: 120.8 kB / 446.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004504/0.2881, allocations: 2.931 MB / 449.8 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0157/0.3038, allocations: 10.75 MB / 460.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/0.3066, allocations: 2.429 MB / 463 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/0.3085, allocations: 1.168 MB / 464.1 MB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/0.3087, allocations: 134.3 kB / 464.3 MB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.3088, allocations: 47.88 kB / 464.3 MB, free: 9.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=133): time 3.757e-06/0.3088, allocations: 0 / 464.3 MB, free: 9.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=147): time 0.0149/0.3237, allocations: 7.254 MB / 471.6 MB, free: 1.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.3238, allocations: 94.36 kB / 471.7 MB, free: 1.535 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002906/0.3267, allocations: 1.834 MB / 473.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001077/0.3268, allocations: 49.7 kB / 473.6 MB, free: 15.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008597/0.3277, allocations: 1.214 MB / 474.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004133/0.3281, allocations: 0.4968 MB / 475.3 MB, free: 13.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004981/0.3286, allocations: 311.3 kB / 475.6 MB, free: 13.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.281e-05/0.3287, allocations: 305.1 kB / 475.9 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.3301, allocations: 0.8558 MB / 476.7 MB, free: 12.44 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/0.3317, allocations: 1.31 MB / 478 MB, free: 10.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.3347, allocations: 2.261 MB / 480.3 MB, free: 8.477 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.3347, allocations: 4 kB / 480.3 MB, free: 8.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004638/0.3393, allocations: 2.849 MB / 483.1 MB, free: 5.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.3394, allocations: 19.88 kB / 483.2 MB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.602e-05/0.3394, allocations: 12.34 kB / 483.2 MB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.341, allocations: 0.6862 MB / 483.9 MB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.3423, allocations: 355.5 kB / 484.2 MB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009557/0.3519, allocations: 9.036 MB / 493.2 MB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.3535, allocations: 107.8 kB / 493.4 MB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/0.3537, allocations: 75.97 kB / 493.4 MB, free: 10.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002608/0.3563, allocations: 1.585 MB / 495 MB, free: 9.301 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001571/0.3579, allocations: 1.303 MB / 496.3 MB, free: 7.801 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002679/0.3606, allocations: 2.237 MB / 498.6 MB, free: 5.371 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.288e-06/0.3606, allocations: 11.92 kB / 498.6 MB, free: 5.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=218) (initialization_lambda0): time 0.004414/0.3651, allocations: 2.829 MB / 0.4896 GB, free: 2.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3651, allocations: 15.98 kB / 0.4897 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.3651, allocations: 16 kB / 0.4897 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/0.3666, allocations: 0.6679 MB / 0.4903 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.3678, allocations: 359.4 kB / 0.4907 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009122/0.3769, allocations: 9.04 MB / 0.4995 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.3783, allocations: 107.9 kB / 0.4996 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.3785, allocations: 75.98 kB / 0.4997 GB, free: 7.801 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.0003913/0.3789, allocations: 287.8 kB / 0.4999 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.3793, allocations: 205.5 kB / 0.5001 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004272/0.3836, allocations: 2.559 MB / 0.5026 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.3836, allocations: 7.969 kB / 0.5026 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3836, allocations: 3.938 kB / 0.5026 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009359/0.3846, allocations: 474.5 kB / 0.5031 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003263/0.3849, allocations: 28 kB / 0.5031 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.3859, allocations: 96.06 kB / 0.5032 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.3862, allocations: 105.3 kB / 0.5033 GB, free: 4.004 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005274/0.3914, allocations: 2.725 MB / 0.506 GB, free: 1.262 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004168/0.3956, allocations: 3.225 MB / 0.5091 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001201/0.3968, allocations: 0.9159 MB / 0.51 GB, free: 13.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00189/0.3987, allocations: 1.26 MB / 0.5113 GB, free: 11.85 MB / 446.1 MB Notification: Performance of Backend: time 4.41e-07/0.3988, allocations: 4 kB / 0.5113 GB, free: 11.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006079/0.4048, allocations: 3.899 MB / 0.5151 GB, free: 7.832 MB / 446.1 MB Notification: Performance of SimCode: time 0.008945/0.4138, allocations: 5.743 MB / 0.5207 GB, free: 2.047 MB / 446.1 MB Notification: Performance of Templates: time 0.2371/0.651, allocations: 46.43 MB / 0.566 GB, free: 113.5 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)