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.00113/0.00113, 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.001161/0.001161, 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.308/1.308, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00213/0.00213, allocations: 63.89 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2521, allocations: 50.54 MB / 410 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.0114/0.2635, allocations: 11.44 MB / 421.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006533/0.2701, allocations: 3.598 MB / 425 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/0.2722, allocations: 75.62 kB / 425.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002567/0.2747, allocations: 0.8345 MB / 425.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00309/0.2779, allocations: 0.9278 MB / 426.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.2793, allocations: 439.4 kB / 427.3 MB, free: 184 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004517/0.2838, allocations: 3.755 MB / 431 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003812/0.2876, allocations: 2.87 MB / 433.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00235/0.29, allocations: 1.666 MB / 435.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0028/0.2928, allocations: 1.969 MB / 437.5 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009202/0.2938, allocations: 420 kB / 437.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.2951, allocations: 0.4998 MB / 438.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001286/0.2964, allocations: 1.2 MB / 439.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002495/0.2989, allocations: 1.937 MB / 441.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004714/0.3037, allocations: 5.549 MB / 447.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.3037, allocations: 4 kB / 447.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3037, allocations: 4 kB / 447.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.056e-05/0.3037, allocations: 0 / 447.1 MB, free: 12.19 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.00608/0.3098, allocations: 3.821 MB / 450.9 MB, free: 8.297 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3099, allocations: 12.03 kB / 451 MB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008467/0.3107, allocations: 388.6 kB / 451.3 MB, free: 7.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003485/0.3142, allocations: 2.059 MB / 453.4 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.3144, allocations: 214.1 kB / 453.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003723/0.3147, allocations: 287.8 kB / 453.9 MB, free: 5.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005451/0.3202, allocations: 3.853 MB / 457.7 MB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.54e-05/0.3203, allocations: 7.938 kB / 457.7 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002571/0.3205, allocations: 120 kB / 457.9 MB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.3207, allocations: 125.5 kB / 458 MB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00497/0.3256, allocations: 3.25 MB / 461.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01688/0.3425, allocations: 11.78 MB / 473 MB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003274/0.3458, allocations: 3.652 MB / 476.7 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002047/0.3479, allocations: 1.236 MB / 477.9 MB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002616/0.3482, allocations: 134.4 kB / 478 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.3482, allocations: 51.88 kB / 478.1 MB, free: 12.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.507e-06/0.3482, allocations: 0 / 478.1 MB, free: 12.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01357/0.3618, allocations: 7.335 MB / 485.4 MB, free: 4.641 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.3619, allocations: 64.72 kB / 485.5 MB, free: 4.566 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002727/0.3646, allocations: 2.064 MB / 487.5 MB, free: 2.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.458e-05/0.3647, allocations: 57.7 kB / 487.6 MB, free: 2.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009264/0.3656, allocations: 1.374 MB / 489 MB, free: 1.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/0.366, allocations: 0.5122 MB / 489.5 MB, free: 500 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000512/0.3665, allocations: 347.2 kB / 489.8 MB, free: 144 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.96e-05/0.3666, allocations: 301.1 kB / 490.1 MB, free: 15.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.3679, allocations: 0.8705 MB / 491 MB, free: 14.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.3695, allocations: 1.369 MB / 492.4 MB, free: 13.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/0.3724, allocations: 2.322 MB / 494.7 MB, free: 10.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/0.3724, allocations: 4 kB / 494.7 MB, free: 10.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005184/0.3776, allocations: 3.281 MB / 498 MB, free: 7.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.3776, allocations: 12 kB / 498 MB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.3777, allocations: 16 kB / 498 MB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002162/0.3798, allocations: 0.8448 MB / 498.8 MB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.381, allocations: 347.4 kB / 499.2 MB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/0.3976, allocations: 20.58 MB / 0.5076 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.399, allocations: 103.8 kB / 0.5077 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.3991, allocations: 71.98 kB / 0.5077 GB, free: 15.98 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.001408/0.4005, allocations: 0.9422 MB / 0.5087 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003143/0.4009, allocations: 217.3 kB / 0.5089 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/0.4049, allocations: 2.633 MB / 0.5114 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/0.405, allocations: 11.97 kB / 0.5115 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.405, allocations: 0 / 0.5115 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009704/0.4059, allocations: 478.3 kB / 0.5119 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.4062, allocations: 32 kB / 0.5119 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009532/0.4071, allocations: 108 kB / 0.512 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.4074, allocations: 141 kB / 0.5122 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004596/0.412, allocations: 2.59 MB / 0.5147 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003851/0.4159, allocations: 3.024 MB / 0.5177 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001072/0.4169, allocations: 0.8495 MB / 0.5185 GB, free: 4.812 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00186/0.4188, allocations: 1.4 MB / 0.5199 GB, free: 3.391 MB / 446.1 MB Notification: Performance of Backend: time 3.71e-07/0.4188, allocations: 0 / 0.5199 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004232/0.4231, allocations: 2.906 MB / 0.5227 GB, free: 352 kB / 446.1 MB Notification: Performance of SimCode: time 0.008892/0.432, allocations: 6.295 MB / 0.5288 GB, free: 10.01 MB / 462.1 MB Notification: Performance of Templates: time 0.2933/0.7253, allocations: 39.34 MB / 0.5673 GB, free: 105.3 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)