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.00151/0.00151, allocations: 116.4 kB / 16.37 MB, free: 6.43 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.354/1.354, allocations: 222.9 MB / 240 MB, free: 4.582 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.001443/0.001443, allocations: 196.4 kB / 290.3 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03597/0.03597, allocations: 8.79 MB / 349.3 MB, free: 4.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002484/0.002484, allocations: 80.53 kB / 412.5 MB, free: 41.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.1022, allocations: 51.56 MB / 464.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01737/0.1196, allocations: 15.79 MB / 479.9 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.1299, allocations: 5.29 MB / 485.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003569/0.1335, allocations: 91.69 kB / 485.3 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004292/0.1378, allocations: 1.208 MB / 486.5 MB, free: 7.156 MB / 318.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.006185/0.1441, allocations: 1.561 MB / 488 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003279/0.1474, allocations: 0.9643 MB / 489 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007661/0.155, allocations: 4.705 MB / 493.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006451/0.1615, allocations: 3.517 MB / 497.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004051/0.1656, allocations: 2.099 MB / 499.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004819/0.1704, allocations: 2.436 MB / 0.49 GB, free: 7.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001988/0.1725, allocations: 0.5742 MB / 0.4906 GB, free: 7.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002664/0.1751, allocations: 0.7771 MB / 0.4913 GB, free: 6.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00149/0.1767, allocations: 1.297 MB / 0.4926 GB, free: 5.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003033/0.1797, allocations: 2.447 MB / 0.495 GB, free: 2.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007034/0.1867, allocations: 7.493 MB / 0.5023 GB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1868, allocations: 0 / 0.5023 GB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1868, allocations: 0 / 0.5023 GB, free: 11.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000197/0.187, allocations: 0 / 0.5023 GB, free: 11.13 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01439/0.2014, allocations: 4.982 MB / 0.5072 GB, free: 6.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.2014, allocations: 11.97 kB / 0.5072 GB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005111/0.2066, allocations: 0.9484 MB / 0.5081 GB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006368/0.213, allocations: 2.828 MB / 0.5109 GB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002529/0.2132, allocations: 279.8 kB / 0.5111 GB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009501/0.2142, allocations: 372 kB / 0.5115 GB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.2252, allocations: 4.768 MB / 0.5161 GB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00013/0.2254, allocations: 11.91 kB / 0.5161 GB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007462/0.2261, allocations: 148 kB / 0.5163 GB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001681/0.2263, allocations: 155.4 kB / 0.5164 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007948/0.2343, allocations: 4.046 MB / 0.5204 GB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1929/0.4272, allocations: 15.54 MB / 0.5356 GB, free: 55.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00563/0.4328, allocations: 6.923 MB / 0.5423 GB, free: 50.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002752/0.4356, allocations: 1.513 MB / 0.5438 GB, free: 50.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007318/0.4429, allocations: 4.151 MB / 0.5479 GB, free: 50.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.443, allocations: 52.69 kB / 0.5479 GB, free: 50.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.787e-06/0.443, allocations: 0 / 0.5479 GB, free: 50.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01217/0.4552, allocations: 6.368 MB / 0.5541 GB, free: 47.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.4553, allocations: 74.97 kB / 0.5542 GB, free: 47.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/0.4588, allocations: 2.179 MB / 0.5563 GB, free: 46.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001986/0.459, allocations: 57.45 kB / 0.5564 GB, free: 46.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.4601, allocations: 1.729 MB / 0.5581 GB, free: 45.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004458/0.4605, allocations: 0.5476 MB / 0.5586 GB, free: 44.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006496/0.4612, allocations: 409.8 kB / 0.559 GB, free: 44.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.222e-05/0.4613, allocations: 305.1 kB / 0.5593 GB, free: 44.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.4624, allocations: 0.8237 MB / 0.5601 GB, free: 43.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.4637, allocations: 1.595 MB / 0.5616 GB, free: 42.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.4665, allocations: 2.587 MB / 0.5642 GB, free: 40.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/0.4665, allocations: 6.375 kB / 0.5642 GB, free: 40.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004225/0.4707, allocations: 3.033 MB / 0.5671 GB, free: 38.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.4708, allocations: 20.5 kB / 0.5672 GB, free: 38.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-05/0.4708, allocations: 24.44 kB / 0.5672 GB, free: 38.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007743/0.4716, allocations: 306.1 kB / 0.5675 GB, free: 38.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.4734, allocations: 0.4921 MB / 0.568 GB, free: 38.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004191/0.4776, allocations: 4.871 MB / 0.5727 GB, free: 34.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/0.4798, allocations: 106 kB / 0.5728 GB, free: 34.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.48, allocations: 97.16 kB / 0.5729 GB, free: 34.2 MB / 366.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.001923/0.4819, allocations: 1.142 MB / 0.574 GB, free: 33.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000538/0.4824, allocations: 233.2 kB / 0.5742 GB, free: 33.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/0.4859, allocations: 2.399 MB / 0.5766 GB, free: 31.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4859, allocations: 18.91 kB / 0.5766 GB, free: 31.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4859, allocations: 4.344 kB / 0.5766 GB, free: 31.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.4859, allocations: 8.719 kB / 0.5766 GB, free: 31.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007681/0.4936, allocations: 5.704 MB / 0.5822 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.4936, allocations: 1.125 kB / 0.5822 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.4948, allocations: 267.7 kB / 0.5824 GB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007141/0.4955, allocations: 312 kB / 0.5827 GB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-05/0.4956, allocations: 41.3 kB / 0.5828 GB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004793/0.5004, allocations: 7.025 MB / 0.5896 GB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.5004, allocations: 0 / 0.5896 GB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004467/0.5049, allocations: 3.495 MB / 0.5931 GB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.5061, allocations: 494.2 kB / 0.5935 GB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.5065, allocations: 32 kB / 0.5936 GB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.5075, allocations: 67.86 kB / 0.5936 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.5078, allocations: 113.1 kB / 0.5937 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.838e-05/0.5079, allocations: 48.59 kB / 0.5938 GB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001782/0.5096, allocations: 1.476 MB / 0.5952 GB, free: 12.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5097, allocations: 0 / 0.5952 GB, free: 12.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002135/0.5118, allocations: 0.6497 MB / 0.5958 GB, free: 11.77 MB / 366.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.0002867/0.5121, allocations: 173.2 kB / 0.596 GB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003186/0.5153, allocations: 2.459 MB / 0.5984 GB, free: 9.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.5153, allocations: 0 / 0.5984 GB, free: 9.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.517, allocations: 1.413 MB / 0.5998 GB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.5195, allocations: 0.5716 MB / 0.6004 GB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009428/0.5289, allocations: 6.438 MB / 0.6066 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/0.531, allocations: 2.519 MB / 0.6091 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001947/0.533, allocations: 0.521 MB / 0.6096 GB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004425/0.5335, allocations: 163.3 kB / 0.6098 GB, free: 13.44 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5335, allocations: 0 / 0.6098 GB, free: 13.44 MB / 382.1 MB Notification: Performance of Templates: time 0.05422/0.5877, allocations: 29.86 MB / 0.6389 GB, free: 15.94 MB / 414.1 MB 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)