Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 106.6 kB / 17.74 MB, free: 5.324 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.001131/0.001131, allocations: 194.9 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.419/1.419, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009874/0.0009874, allocations: 43.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2271, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01287/0.24, allocations: 11.43 MB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006316/0.2463, allocations: 3.536 MB / 416.4 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.2479, allocations: 67.69 kB / 416.5 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002283/0.2502, allocations: 0.8892 MB / 417.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002673/0.253, allocations: 0.9747 MB / 418.3 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.2541, allocations: 439.4 kB / 418.8 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004113/0.2582, allocations: 3.744 MB / 422.5 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003265/0.2615, allocations: 2.869 MB / 425.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001999/0.2635, allocations: 1.663 MB / 427 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002648/0.2662, allocations: 1.961 MB / 429 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000855/0.267, allocations: 420 kB / 429.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.2683, allocations: 0.4996 MB / 429.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.2695, allocations: 1.2 MB / 431.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001984/0.2715, allocations: 1.941 MB / 433 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004658/0.2762, allocations: 5.534 MB / 438.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2762, allocations: 0 / 438.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2762, allocations: 0 / 438.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.323e-05/0.2763, allocations: 0 / 438.6 MB, free: 3.523 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.007327/0.2836, allocations: 3.812 MB / 442.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2837, allocations: 12.02 kB / 442.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009551/0.2846, allocations: 396.5 kB / 442.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003658/0.2883, allocations: 2.051 MB / 444.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.2885, allocations: 210.1 kB / 445 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000379/0.2889, allocations: 299.8 kB / 445.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006043/0.2949, allocations: 3.861 MB / 449.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.033e-05/0.295, allocations: 7.984 kB / 449.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002548/0.2953, allocations: 116 kB / 449.3 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.2954, allocations: 121.5 kB / 449.4 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004988/0.3004, allocations: 3.25 MB / 452.7 MB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01702/0.3174, allocations: 11.78 MB / 464.5 MB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003076/0.3205, allocations: 3.669 MB / 468.1 MB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/0.3226, allocations: 1.258 MB / 469.4 MB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002241/0.3228, allocations: 118.4 kB / 469.5 MB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.3228, allocations: 55.81 kB / 469.6 MB, free: 3.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.597e-06/0.3229, allocations: 0 / 469.6 MB, free: 3.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01337/0.3362, allocations: 7.316 MB / 476.9 MB, free: 11.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.3363, allocations: 68.72 kB / 476.9 MB, free: 11.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.3389, allocations: 2.056 MB / 479 MB, free: 9.793 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.3391, allocations: 53.64 kB / 479 MB, free: 9.734 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008686/0.3399, allocations: 1.374 MB / 480.4 MB, free: 8.348 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003544/0.3403, allocations: 0.5083 MB / 480.9 MB, free: 7.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005078/0.3408, allocations: 347.2 kB / 481.3 MB, free: 7.484 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.581e-05/0.3409, allocations: 305.1 kB / 481.6 MB, free: 7.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.3422, allocations: 0.8705 MB / 482.4 MB, free: 6.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.3438, allocations: 1.361 MB / 483.8 MB, free: 4.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002919/0.3467, allocations: 2.334 MB / 486.1 MB, free: 2.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.3468, allocations: 4 kB / 486.1 MB, free: 2.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005389/0.3522, allocations: 3.27 MB / 489.4 MB, free: 14.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.3522, allocations: 16.09 kB / 489.4 MB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.3522, allocations: 16 kB / 489.4 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002345/0.3546, allocations: 0.8443 MB / 490.3 MB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.3559, allocations: 347.4 kB / 490.6 MB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01691/0.3728, allocations: 20.58 MB / 0.4992 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.3744, allocations: 95.83 kB / 0.4993 GB, free: 7.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.3746, allocations: 75.98 kB / 0.4994 GB, free: 7.332 MB / 430.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.00154/0.3761, allocations: 0.9361 MB / 0.5003 GB, free: 6.387 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000319/0.3765, allocations: 217.4 kB / 0.5005 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004293/0.3808, allocations: 2.636 MB / 0.5031 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.3808, allocations: 7.969 kB / 0.5031 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3808, allocations: 0 / 0.5031 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008309/0.3816, allocations: 478.3 kB / 0.5035 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002708/0.3819, allocations: 28 kB / 0.5036 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.383, allocations: 111.9 kB / 0.5037 GB, free: 2.836 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002578/0.3832, allocations: 145 kB / 0.5038 GB, free: 2.695 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004854/0.3881, allocations: 2.59 MB / 0.5063 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003911/0.392, allocations: 3.028 MB / 0.5093 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001105/0.3931, allocations: 0.8495 MB / 0.5101 GB, free: 12.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001871/0.395, allocations: 1.396 MB / 0.5115 GB, free: 10.75 MB / 446.1 MB Notification: Performance of Backend: time 3e-07/0.395, allocations: 0 / 0.5115 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00433/0.3994, allocations: 2.892 MB / 0.5143 GB, free: 7.715 MB / 446.1 MB Notification: Performance of SimCode: time 0.009426/0.4088, allocations: 6.299 MB / 0.5205 GB, free: 1.371 MB / 446.1 MB Notification: Performance of Templates: time 0.2355/0.6443, allocations: 39.26 MB / 0.5588 GB, free: 119.2 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1)