Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001068, allocations: 183 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03883/0.03883, allocations: 8.794 MB / 25.53 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 251.3 MB, free: 7.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009888/0.000989, allocations: 105.9 kB / 303.6 MB, free: 14.51 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 366 MB, free: 180 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1826, allocations: 51.55 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01136/0.194, allocations: 15.63 MB / 433.2 MB, free: 5.215 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008284/0.2024, allocations: 5.212 MB / 438.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003748/0.2062, allocations: 91.69 kB / 438.5 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003388/0.2096, allocations: 1.073 MB / 439.5 MB, free: 14.82 MB / 314.7 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.004665/0.2143, allocations: 1.408 MB / 440.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002042/0.2164, allocations: 0.8999 MB / 441.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005601/0.222, allocations: 5.052 MB / 446.9 MB, free: 7.441 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003387/0.2254, allocations: 2.926 MB / 449.8 MB, free: 4.445 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002238/0.2276, allocations: 1.72 MB / 451.5 MB, free: 2.719 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002642/0.2303, allocations: 2.245 MB / 453.8 MB, free: 476 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006145/0.2309, allocations: 340 kB / 454.1 MB, free: 136 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001417/0.2323, allocations: 0.5427 MB / 454.7 MB, free: 15.59 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008959/0.2333, allocations: 1.047 MB / 455.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002418/0.2357, allocations: 2.181 MB / 457.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006166/0.2419, allocations: 7.247 MB / 465.1 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2419, allocations: 3.938 kB / 465.1 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2419, allocations: 4 kB / 465.1 MB, free: 5.066 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001267/0.242, allocations: 0 / 465.1 MB, free: 5.066 MB / 330.7 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.01119/0.2532, allocations: 4.966 MB / 470.1 MB, free: 28 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.2533, allocations: 8.031 kB / 470.1 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004536/0.2578, allocations: 0.9563 MB / 471.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005158/0.263, allocations: 2.649 MB / 473.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.2632, allocations: 279.8 kB / 474 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004769/0.2637, allocations: 368 kB / 474.4 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007289/0.271, allocations: 4.772 MB / 479.1 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-05/0.2711, allocations: 3.938 kB / 479.1 MB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003001/0.2714, allocations: 156 kB / 479.3 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.2715, allocations: 155.3 kB / 479.4 MB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006193/0.2777, allocations: 4.054 MB / 483.5 MB, free: 2.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02278/0.3005, allocations: 15.81 MB / 499.3 MB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1625/0.4631, allocations: 6.947 MB / 0.4944 GB, free: 61.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002845/0.466, allocations: 1.527 MB / 0.4959 GB, free: 61.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006329/0.4723, allocations: 4.23 MB / 0.5 GB, free: 59.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.4724, allocations: 50.03 kB / 0.5001 GB, free: 59.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 2.295e-06/0.4724, allocations: 0 / 0.5001 GB, free: 59.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=159): time 0.009983/0.4824, allocations: 6.456 MB / 0.5064 GB, free: 56.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.4824, allocations: 71 kB / 0.5064 GB, free: 56.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/0.4852, allocations: 2.234 MB / 0.5086 GB, free: 55.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.924e-05/0.4853, allocations: 53.61 kB / 0.5087 GB, free: 55.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006476/0.486, allocations: 1.707 MB / 0.5103 GB, free: 54.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/0.4862, allocations: 0.5426 MB / 0.5109 GB, free: 53.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004759/0.4867, allocations: 382 kB / 0.5112 GB, free: 53.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.246e-05/0.4868, allocations: 312.7 kB / 0.5115 GB, free: 53.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.4878, allocations: 0.8222 MB / 0.5123 GB, free: 52.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.4891, allocations: 1.487 MB / 0.5138 GB, free: 51.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002247/0.4914, allocations: 2.449 MB / 0.5162 GB, free: 49.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.4914, allocations: 7.344 kB / 0.5162 GB, free: 49.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.00357/0.495, allocations: 2.952 MB / 0.5191 GB, free: 48.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.495, allocations: 15.62 kB / 0.5191 GB, free: 48.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.495, allocations: 19.5 kB / 0.5191 GB, free: 48.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000702/0.4957, allocations: 301.7 kB / 0.5194 GB, free: 48.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.4972, allocations: 488.8 kB / 0.5198 GB, free: 47.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/0.5005, allocations: 4.502 MB / 0.5242 GB, free: 43.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.5021, allocations: 87.88 kB / 0.5243 GB, free: 43.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.5022, allocations: 88 kB / 0.5244 GB, free: 42.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * 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.001507/0.5038, allocations: 1.136 MB / 0.5255 GB, free: 41.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000289/0.504, allocations: 233.2 kB / 0.5257 GB, free: 41.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.5073, allocations: 2.42 MB / 0.5281 GB, free: 39.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.5073, allocations: 19.94 kB / 0.5281 GB, free: 39.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.5073, allocations: 10.61 kB / 0.5281 GB, free: 39.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.5073, allocations: 3.984 kB / 0.5281 GB, free: 39.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006826/0.5141, allocations: 5.786 MB / 0.5338 GB, free: 33.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.5142, allocations: 0 / 0.5338 GB, free: 33.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.5152, allocations: 279.8 kB / 0.5341 GB, free: 32.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007347/0.516, allocations: 322.2 kB / 0.5344 GB, free: 32.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.619e-05/0.5161, allocations: 39.98 kB / 0.5344 GB, free: 32.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004397/0.5205, allocations: 6.443 MB / 0.5407 GB, free: 25.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5205, allocations: 4.031 kB / 0.5407 GB, free: 25.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02453/0.545, allocations: 23.15 MB / 0.5633 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007046/0.5458, allocations: 0.4903 MB / 0.5638 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002263/0.546, allocations: 31.98 kB / 0.5638 GB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009691/0.547, allocations: 71.89 kB / 0.5639 GB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.5472, allocations: 113.2 kB / 0.564 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-05/0.5473, allocations: 47.92 kB / 0.564 GB, free: 1.066 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001665/0.549, allocations: 1.521 MB / 0.5655 GB, free: 15.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.549, allocations: 0 / 0.5655 GB, free: 15.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002462/0.5515, allocations: 0.8984 MB / 0.5664 GB, free: 14.63 MB / 378.7 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.0002679/0.5517, allocations: 169.5 kB / 0.5666 GB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003409/0.5552, allocations: 2.434 MB / 0.5689 GB, free: 11.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.5552, allocations: 8.375 kB / 0.5689 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.557, allocations: 1.404 MB / 0.5703 GB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/0.5591, allocations: 0.5496 MB / 0.5709 GB, free: 9.996 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/0.571, allocations: 9.57 MB / 0.5802 GB, free: 348 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002204/0.5733, allocations: 2.558 MB / 0.5827 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001854/0.5751, allocations: 0.5233 MB / 0.5832 GB, free: 13.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000473/0.5756, allocations: 167.4 kB / 0.5834 GB, free: 13.06 MB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5756, allocations: 0 / 0.5834 GB, free: 13.06 MB / 394.7 MB Notification: Performance of Templates: time 0.05624/0.6319, allocations: 36.79 MB / 0.6193 GB, free: 8.625 MB / 426.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)