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.009288/0.009288, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.725/1.725, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.00189/0.00189, allocations: 179.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0337/0.0337, allocations: 8.803 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 84.16 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1212, allocations: 51.56 MB / 0.5034 GB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.017/0.1382, allocations: 15.81 MB / 0.5188 GB, free: 9.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.1497, allocations: 5.278 MB / 0.524 GB, free: 4.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003895/0.1536, allocations: 91.69 kB / 0.5241 GB, free: 4.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004275/0.1579, allocations: 1.211 MB / 0.5253 GB, free: 3.012 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.006734/0.1647, allocations: 1.549 MB / 0.5268 GB, free: 1.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003594/0.1683, allocations: 0.9659 MB / 0.5277 GB, free: 500 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3047/0.473, allocations: 4.692 MB / 0.5323 GB, free: 6.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006276/0.4794, allocations: 3.521 MB / 0.5357 GB, free: 5.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005212/0.4846, allocations: 2.119 MB / 0.5378 GB, free: 5.359 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006089/0.4907, allocations: 2.438 MB / 0.5402 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002521/0.4933, allocations: 0.5708 MB / 0.5407 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00545/0.4988, allocations: 0.7814 MB / 0.5415 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00394/0.5028, allocations: 1.288 MB / 0.5428 GB, free: 4.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007928/0.5107, allocations: 2.442 MB / 0.5452 GB, free: 4.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01487/0.5256, allocations: 7.504 MB / 0.5525 GB, free: 3.105 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.5257, allocations: 4 kB / 0.5525 GB, free: 3.102 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5257, allocations: 1.25 kB / 0.5525 GB, free: 3.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003198/0.526, allocations: 0 / 0.5525 GB, free: 3.102 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.0207/0.5467, allocations: 4.976 MB / 0.5573 GB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.5468, allocations: 8.938 kB / 0.5574 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007521/0.5543, allocations: 0.965 MB / 0.5583 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008456/0.5628, allocations: 2.827 MB / 0.5611 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/0.5631, allocations: 275.3 kB / 0.5613 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001663/0.5648, allocations: 367.8 kB / 0.5617 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/0.5784, allocations: 4.78 MB / 0.5663 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.396e-05/0.5786, allocations: 3.125 kB / 0.5663 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004806/0.5791, allocations: 148 kB / 0.5665 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.5792, allocations: 157.1 kB / 0.5666 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.5894, allocations: 4.041 MB / 0.5706 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03584/0.6253, allocations: 15.56 MB / 0.5858 GB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008441/0.6337, allocations: 6.935 MB / 0.5925 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003302/0.6371, allocations: 1.503 MB / 0.594 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01073/0.6478, allocations: 4.156 MB / 0.5981 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.298e-05/0.6479, allocations: 43.88 kB / 0.5981 GB, free: 9.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 2.876e-06/0.6479, allocations: 0 / 0.5981 GB, free: 9.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01507/0.663, allocations: 6.366 MB / 0.6043 GB, free: 3.281 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.6631, allocations: 68.72 kB / 0.6044 GB, free: 3.203 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005179/0.6683, allocations: 2.183 MB / 0.6065 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003686/0.6687, allocations: 49.7 kB / 0.6066 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.6703, allocations: 1.737 MB / 0.6083 GB, free: 15.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008507/0.6712, allocations: 0.5482 MB / 0.6088 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.6722, allocations: 407.8 kB / 0.6092 GB, free: 14.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.6724, allocations: 305.1 kB / 0.6095 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/0.674, allocations: 0.8242 MB / 0.6103 GB, free: 13.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002153/0.6762, allocations: 1.589 MB / 0.6118 GB, free: 11.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.6801, allocations: 2.589 MB / 0.6144 GB, free: 8.344 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-05/0.6802, allocations: 8 kB / 0.6144 GB, free: 8.336 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006055/0.6862, allocations: 3.034 MB / 0.6173 GB, free: 5.422 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.6863, allocations: 16 kB / 0.6174 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.612e-05/0.6864, allocations: 27.94 kB / 0.6174 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009283/0.6873, allocations: 306.5 kB / 0.6177 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/0.6893, allocations: 0.4948 MB / 0.6182 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005483/0.6948, allocations: 4.869 MB / 0.6229 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002834/0.6977, allocations: 99.92 kB / 0.623 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004622/0.6982, allocations: 99.84 kB / 0.6231 GB, free: 15.3 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.003204/0.7014, allocations: 1.137 MB / 0.6242 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008651/0.7023, allocations: 233.2 kB / 0.6244 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005066/0.7073, allocations: 2.402 MB / 0.6268 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.7074, allocations: 16 kB / 0.6268 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.7074, allocations: 4 kB / 0.6268 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.7074, allocations: 8.094 kB / 0.6268 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.7204, allocations: 5.709 MB / 0.6324 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.7204, allocations: 0 / 0.6324 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.7217, allocations: 273.7 kB / 0.6326 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009092/0.7226, allocations: 317.9 kB / 0.6329 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/0.7228, allocations: 39.98 kB / 0.633 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006866/0.7297, allocations: 7.009 MB / 0.6398 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.7297, allocations: 4.031 kB / 0.6398 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007041/0.7368, allocations: 3.486 MB / 0.6432 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/0.7385, allocations: 497.5 kB / 0.6437 GB, free: 9.641 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/0.7396, allocations: 32 kB / 0.6437 GB, free: 9.609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001819/0.7414, allocations: 64.14 kB / 0.6438 GB, free: 9.547 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003582/0.7418, allocations: 128.5 kB / 0.6439 GB, free: 9.426 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.7419, allocations: 39.94 kB / 0.644 GB, free: 9.387 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004043/0.746, allocations: 1.476 MB / 0.6454 GB, free: 7.895 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.746, allocations: 0 / 0.6454 GB, free: 7.895 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004084/0.7501, allocations: 0.6484 MB / 0.646 GB, free: 7.246 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.0004946/0.7506, allocations: 165.6 kB / 0.6462 GB, free: 7.094 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005626/0.7562, allocations: 2.467 MB / 0.6486 GB, free: 4.664 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.7563, allocations: 0 / 0.6486 GB, free: 4.664 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002801/0.7591, allocations: 1.415 MB / 0.65 GB, free: 3.238 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004766/0.7639, allocations: 0.5724 MB / 0.6505 GB, free: 2.668 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/0.7826, allocations: 6.434 MB / 0.6568 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003011/0.7857, allocations: 2.511 MB / 0.6593 GB, free: 9.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002032/0.7877, allocations: 0.5235 MB / 0.6598 GB, free: 9.133 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004637/0.7882, allocations: 155.4 kB / 0.6599 GB, free: 8.984 MB / 478.1 MB Notification: Performance of SimCode: time 8.91e-07/0.7882, allocations: 0 / 0.6599 GB, free: 8.984 MB / 478.1 MB Notification: Performance of Templates: time 0.05708/0.8453, allocations: 30.62 MB / 0.6898 GB, free: 10.73 MB / 0.4981 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)