Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001965/0.001965, allocations: 117.2 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002422/0.002422, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 63.89 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2181, allocations: 50.54 MB / 410 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.0116/0.2297, allocations: 11.45 MB / 421.4 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005466/0.2352, allocations: 3.587 MB / 425 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008635/0.2361, allocations: 67.69 kB / 425.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00174/0.2378, allocations: 0.9008 MB / 426 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001937/0.2398, allocations: 0.9747 MB / 426.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007683/0.2406, allocations: 439.3 kB / 427.4 MB, free: 68 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003703/0.2443, allocations: 3.764 MB / 431.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003002/0.2473, allocations: 2.861 MB / 434 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.2495, allocations: 1.666 MB / 435.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.2517, allocations: 1.977 MB / 437.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005439/0.2522, allocations: 416 kB / 438 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009417/0.2532, allocations: 0.4998 MB / 438.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00106/0.2543, allocations: 1.196 MB / 439.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.2561, allocations: 1.937 MB / 441.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004596/0.2607, allocations: 5.553 MB / 447.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2608, allocations: 0 / 447.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2608, allocations: 0 / 447.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.894e-05/0.2608, allocations: 0 / 447.2 MB, free: 12.08 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006745/0.2676, allocations: 3.821 MB / 451 MB, free: 8.191 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.2677, allocations: 8.031 kB / 451 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008881/0.2685, allocations: 388.6 kB / 451.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00353/0.2721, allocations: 2.067 MB / 453.5 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.2722, allocations: 210.1 kB / 453.7 MB, free: 5.473 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004009/0.2727, allocations: 287.8 kB / 454 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00596/0.2786, allocations: 3.861 MB / 457.8 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-05/0.2787, allocations: 7.984 kB / 457.8 MB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.279, allocations: 116 kB / 458 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.2791, allocations: 121.5 kB / 458.1 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00508/0.2842, allocations: 3.246 MB / 461.3 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01705/0.3013, allocations: 11.79 MB / 473.1 MB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003196/0.3045, allocations: 3.648 MB / 476.8 MB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00207/0.3066, allocations: 1.252 MB / 478 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/0.3068, allocations: 118.4 kB / 478.1 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.3069, allocations: 51.88 kB / 478.2 MB, free: 12.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.086e-06/0.3069, allocations: 0 / 478.2 MB, free: 12.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01346/0.3204, allocations: 7.338 MB / 485.5 MB, free: 4.531 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.3204, allocations: 68.72 kB / 485.6 MB, free: 4.453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/0.323, allocations: 2.06 MB / 487.7 MB, free: 2.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.3232, allocations: 49.7 kB / 487.7 MB, free: 2.297 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009093/0.3241, allocations: 1.378 MB / 489.1 MB, free: 0.9023 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003608/0.3244, allocations: 0.5083 MB / 489.6 MB, free: 396 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005037/0.3249, allocations: 355.2 kB / 489.9 MB, free: 32 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.643e-05/0.3251, allocations: 305.1 kB / 490.2 MB, free: 15.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.3263, allocations: 0.8666 MB / 491.1 MB, free: 14.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.3279, allocations: 1.369 MB / 492.5 MB, free: 13.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002913/0.3309, allocations: 2.33 MB / 494.8 MB, free: 10.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.3309, allocations: 7.938 kB / 494.8 MB, free: 10.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005223/0.3361, allocations: 3.27 MB / 498.1 MB, free: 7.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3362, allocations: 12 kB / 498.1 MB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.3362, allocations: 12 kB / 498.1 MB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002207/0.3384, allocations: 0.8444 MB / 498.9 MB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.3396, allocations: 343.4 kB / 499.3 MB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01712/0.3567, allocations: 20.59 MB / 0.5077 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.3583, allocations: 91.83 kB / 0.5078 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.3585, allocations: 80.06 kB / 0.5078 GB, free: 15.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001475/0.36, allocations: 0.9356 MB / 0.5088 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000322/0.3603, allocations: 225.3 kB / 0.509 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004253/0.3646, allocations: 2.637 MB / 0.5116 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.3646, allocations: 3.984 kB / 0.5116 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3646, allocations: 0 / 0.5116 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009354/0.3655, allocations: 482.3 kB / 0.512 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/0.3658, allocations: 31.98 kB / 0.512 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.3669, allocations: 111.9 kB / 0.5122 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/0.3671, allocations: 141.1 kB / 0.5123 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004927/0.3721, allocations: 2.593 MB / 0.5148 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003982/0.3761, allocations: 3.024 MB / 0.5178 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001094/0.3772, allocations: 0.8417 MB / 0.5186 GB, free: 4.707 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001908/0.3791, allocations: 1.408 MB / 0.52 GB, free: 3.277 MB / 446.1 MB Notification: Performance of Backend: time 3.4e-07/0.3791, allocations: 4 kB / 0.52 GB, free: 3.273 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004323/0.3834, allocations: 2.888 MB / 0.5228 GB, free: 248 kB / 446.1 MB Notification: Performance of SimCode: time 0.009052/0.3925, allocations: 6.301 MB / 0.5289 GB, free: 9.902 MB / 462.1 MB Notification: Performance of Templates: time 0.2268/0.6193, allocations: 39.35 MB / 0.5674 GB, free: 104.9 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1)