Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 105.5 kB / 16.41 MB, free: 6.488 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.635/1.635, allocations: 222.9 MB / 240.1 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 184.5 kB / 290.4 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03489/0.03489, allocations: 8.801 MB / 349.3 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003022/0.003022, allocations: 87.86 kB / 464.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1602, allocations: 51.57 MB / 0.5041 GB, free: 9.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.03432/0.1945, allocations: 15.79 MB / 0.5195 GB, free: 9.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01961/0.2142, allocations: 5.278 MB / 0.5247 GB, free: 4.512 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005198/0.2195, allocations: 91.69 kB / 0.5247 GB, free: 4.422 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006809/0.2263, allocations: 1.211 MB / 0.5259 GB, free: 3.203 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.01042/0.2368, allocations: 1.549 MB / 0.5274 GB, free: 1.645 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00518/0.242, allocations: 0.9781 MB / 0.5284 GB, free: 0.668 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3657/0.6077, allocations: 4.691 MB / 0.533 GB, free: 6.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009406/0.6172, allocations: 3.519 MB / 0.5364 GB, free: 5.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0058/0.623, allocations: 2.113 MB / 0.5385 GB, free: 5.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007117/0.6302, allocations: 2.438 MB / 0.5409 GB, free: 4.844 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002072/0.6323, allocations: 0.5707 MB / 0.5414 GB, free: 4.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003369/0.6357, allocations: 0.7858 MB / 0.5422 GB, free: 4.844 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002444/0.6381, allocations: 1.289 MB / 0.5434 GB, free: 4.695 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00746/0.6456, allocations: 2.441 MB / 0.5458 GB, free: 4.094 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.6587, allocations: 7.5 MB / 0.5531 GB, free: 3.051 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.6588, allocations: 6.969 kB / 0.5531 GB, free: 3.047 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6588, allocations: 0 / 0.5531 GB, free: 3.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002972/0.6591, allocations: 0 / 0.5531 GB, free: 3.047 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01872/0.6778, allocations: 4.982 MB / 0.558 GB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.6779, allocations: 8.812 kB / 0.558 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00688/0.6848, allocations: 0.9561 MB / 0.559 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008121/0.6929, allocations: 2.834 MB / 0.5617 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003405/0.6933, allocations: 277.5 kB / 0.562 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001607/0.6949, allocations: 364.4 kB / 0.5623 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.7106, allocations: 4.785 MB / 0.567 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002117/0.7109, allocations: 3.125 kB / 0.567 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001638/0.7125, allocations: 147.6 kB / 0.5672 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002279/0.7128, allocations: 158 kB / 0.5673 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01288/0.7257, allocations: 4.044 MB / 0.5713 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0347/0.7604, allocations: 15.56 MB / 0.5864 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00782/0.7683, allocations: 6.926 MB / 0.5932 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003074/0.7714, allocations: 1.51 MB / 0.5947 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009215/0.7806, allocations: 4.149 MB / 0.5987 GB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.96e-05/0.7807, allocations: 51.42 kB / 0.5988 GB, free: 9.902 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.328e-06/0.7808, allocations: 0 / 0.5988 GB, free: 9.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01474/0.7955, allocations: 6.359 MB / 0.605 GB, free: 3.414 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.7956, allocations: 72.66 kB / 0.6051 GB, free: 3.332 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004925/0.8005, allocations: 2.187 MB / 0.6072 GB, free: 1.113 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002585/0.8008, allocations: 53.7 kB / 0.6073 GB, free: 1.055 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001612/0.8024, allocations: 1.732 MB / 0.6089 GB, free: 15.31 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006976/0.8031, allocations: 0.5452 MB / 0.6095 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000902/0.8041, allocations: 407.8 kB / 0.6099 GB, free: 14.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.8042, allocations: 305.1 kB / 0.6102 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.8058, allocations: 0.8242 MB / 0.611 GB, free: 13.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002174/0.808, allocations: 1.589 MB / 0.6125 GB, free: 11.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/0.8117, allocations: 2.59 MB / 0.615 GB, free: 8.469 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-05/0.8117, allocations: 5.406 kB / 0.615 GB, free: 8.465 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005871/0.8176, allocations: 3.041 MB / 0.618 GB, free: 5.543 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.8177, allocations: 16 kB / 0.618 GB, free: 5.527 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.038e-05/0.8177, allocations: 27.94 kB / 0.6181 GB, free: 5.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009259/0.8187, allocations: 295.4 kB / 0.6183 GB, free: 5.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/0.8206, allocations: 0.4952 MB / 0.6188 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005423/0.826, allocations: 4.874 MB / 0.6236 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/0.8286, allocations: 103.9 kB / 0.6237 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003972/0.829, allocations: 104 kB / 0.6238 GB, free: 15.42 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (264): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002942/0.832, allocations: 1.131 MB / 0.6249 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007565/0.8328, allocations: 233.2 kB / 0.6251 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004929/0.8377, allocations: 2.404 MB / 0.6275 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.8377, allocations: 16 kB / 0.6275 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.707e-05/0.8378, allocations: 4 kB / 0.6275 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.957e-05/0.8378, allocations: 11.81 kB / 0.6275 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.8499, allocations: 5.699 MB / 0.6331 GB, free: 5.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.8499, allocations: 128 / 0.6331 GB, free: 5.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.8512, allocations: 274.6 kB / 0.6333 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008681/0.8521, allocations: 324.2 kB / 0.6336 GB, free: 5.262 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001482/0.8523, allocations: 39.98 kB / 0.6337 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007174/0.8595, allocations: 7.007 MB / 0.6405 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.8595, allocations: 0 / 0.6405 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006705/0.8662, allocations: 3.49 MB / 0.6439 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001556/0.8678, allocations: 494.1 kB / 0.6444 GB, free: 9.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008541/0.8687, allocations: 35.98 kB / 0.6444 GB, free: 9.734 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001673/0.8704, allocations: 59.97 kB / 0.6445 GB, free: 9.676 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003324/0.8707, allocations: 121.1 kB / 0.6446 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.8709, allocations: 43.98 kB / 0.6446 GB, free: 9.516 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00324/0.8741, allocations: 1.475 MB / 0.6461 GB, free: 8.027 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8741, allocations: 0 / 0.6461 GB, free: 8.027 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00337/0.8775, allocations: 0.6562 MB / 0.6467 GB, free: 7.371 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004484/0.878, allocations: 162.1 kB / 0.6469 GB, free: 7.219 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004598/0.8826, allocations: 2.466 MB / 0.6493 GB, free: 4.789 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.8826, allocations: 3.938 kB / 0.6493 GB, free: 4.785 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002431/0.8851, allocations: 1.419 MB / 0.6507 GB, free: 3.355 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004567/0.8896, allocations: 0.5715 MB / 0.6512 GB, free: 2.789 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/0.9041, allocations: 6.408 MB / 0.6575 GB, free: 12.35 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003531/0.9077, allocations: 2.454 MB / 0.6599 GB, free: 9.871 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008877/0.9086, allocations: 171.4 kB / 0.66 GB, free: 9.707 MB / 478.1 MB Notification: Performance of SimCode: time 9.71e-07/0.9086, allocations: 0 / 0.66 GB, free: 9.707 MB / 478.1 MB Notification: Performance of Templates: time 0.3589/1.268, allocations: 100.1 MB / 0.7578 GB, free: 172.9 MB / 0.5294 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)