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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.517/1.517, allocations: 222.9 MB / 240 MB, free: 4.484 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.001351/0.001351, allocations: 196.5 kB / 290.3 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03387/0.03387, allocations: 8.792 MB / 349.3 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 78.8 kB / 412.5 MB, free: 41.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1046, allocations: 51.57 MB / 464.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.0172/0.1218, allocations: 15.81 MB / 479.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.1336, allocations: 5.278 MB / 485.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003729/0.1374, allocations: 91.69 kB / 485.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004205/0.1416, allocations: 1.211 MB / 486.5 MB, free: 7.043 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.006402/0.1481, allocations: 1.557 MB / 488 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002558/0.1506, allocations: 0.9649 MB / 489 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006191/0.1568, allocations: 4.705 MB / 493.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004115/0.161, allocations: 3.524 MB / 497.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003255/0.1642, allocations: 2.095 MB / 499.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003832/0.1681, allocations: 2.444 MB / 0.49 GB, free: 7.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009656/0.1691, allocations: 0.5703 MB / 0.4906 GB, free: 7.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.1708, allocations: 0.7771 MB / 0.4913 GB, free: 6.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.172, allocations: 1.293 MB / 0.4926 GB, free: 4.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003204/0.1752, allocations: 2.439 MB / 0.495 GB, free: 2.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009101/0.1843, allocations: 7.505 MB / 0.5023 GB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/0.1843, allocations: 0 / 0.5023 GB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1844, allocations: 4 kB / 0.5023 GB, free: 11.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002331/0.1846, allocations: 0 / 0.5023 GB, free: 11.02 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.01497/0.1996, allocations: 4.978 MB / 0.5072 GB, free: 5.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.1996, allocations: 8.031 kB / 0.5072 GB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005542/0.2052, allocations: 0.9445 MB / 0.5081 GB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007471/0.2127, allocations: 2.832 MB / 0.5109 GB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.213, allocations: 275.8 kB / 0.5111 GB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009685/0.214, allocations: 372 kB / 0.5115 GB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/0.2246, allocations: 4.772 MB / 0.5161 GB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001261/0.2248, allocations: 7.922 kB / 0.5162 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000402/0.2252, allocations: 148 kB / 0.5163 GB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/0.2253, allocations: 151.4 kB / 0.5164 GB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009241/0.2346, allocations: 4.046 MB / 0.5204 GB, free: 8.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2645/0.4991, allocations: 15.55 MB / 0.5356 GB, free: 56.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006444/0.5056, allocations: 6.919 MB / 0.5423 GB, free: 51.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002637/0.5083, allocations: 1.515 MB / 0.5438 GB, free: 51.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007642/0.5159, allocations: 4.155 MB / 0.5479 GB, free: 50.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.516, allocations: 48.53 kB / 0.5479 GB, free: 50.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.206e-06/0.516, allocations: 0 / 0.5479 GB, free: 50.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01226/0.5283, allocations: 6.377 MB / 0.5541 GB, free: 47.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.5283, allocations: 67.81 kB / 0.5542 GB, free: 47.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003599/0.5319, allocations: 2.181 MB / 0.5563 GB, free: 46.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/0.5321, allocations: 49.67 kB / 0.5564 GB, free: 46.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/0.5331, allocations: 1.737 MB / 0.5581 GB, free: 45.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003839/0.5335, allocations: 0.5437 MB / 0.5586 GB, free: 44.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005227/0.5341, allocations: 405.8 kB / 0.559 GB, free: 44.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.502e-05/0.5341, allocations: 301.1 kB / 0.5593 GB, free: 44.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.5353, allocations: 0.8309 MB / 0.5601 GB, free: 43.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.5368, allocations: 1.591 MB / 0.5616 GB, free: 42.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00274/0.5396, allocations: 2.59 MB / 0.5642 GB, free: 40.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.5396, allocations: 7.844 kB / 0.5642 GB, free: 40.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004738/0.5444, allocations: 3.033 MB / 0.5671 GB, free: 38.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/0.5444, allocations: 15.69 kB / 0.5672 GB, free: 38.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.171e-05/0.5445, allocations: 24.09 kB / 0.5672 GB, free: 38.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008182/0.5453, allocations: 305.8 kB / 0.5675 GB, free: 38.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.5469, allocations: 0.4998 MB / 0.568 GB, free: 38.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003948/0.5509, allocations: 4.876 MB / 0.5727 GB, free: 34.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001991/0.5529, allocations: 97.75 kB / 0.5728 GB, free: 34.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.5531, allocations: 108.5 kB / 0.5729 GB, free: 34.22 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.002295/0.5554, allocations: 1.132 MB / 0.574 GB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006026/0.556, allocations: 234.1 kB / 0.5743 GB, free: 33.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.5593, allocations: 2.391 MB / 0.5766 GB, free: 31.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.5593, allocations: 22.22 kB / 0.5766 GB, free: 31.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.5593, allocations: 3.812 kB / 0.5766 GB, free: 31.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.5594, allocations: 12.91 kB / 0.5766 GB, free: 31.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007811/0.5672, allocations: 5.7 MB / 0.5822 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.5672, allocations: 0 / 0.5822 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.5683, allocations: 284.7 kB / 0.5825 GB, free: 25.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006959/0.569, allocations: 311.6 kB / 0.5828 GB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.841e-05/0.5691, allocations: 35.84 kB / 0.5828 GB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00475/0.5739, allocations: 7.028 MB / 0.5897 GB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5739, allocations: 0 / 0.5897 GB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004284/0.5782, allocations: 3.48 MB / 0.5931 GB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.5792, allocations: 499.8 kB / 0.5935 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/0.5795, allocations: 29.12 kB / 0.5936 GB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009878/0.5805, allocations: 67.95 kB / 0.5936 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002424/0.5808, allocations: 117.1 kB / 0.5937 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.663e-05/0.5809, allocations: 47.98 kB / 0.5938 GB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001686/0.5825, allocations: 1.476 MB / 0.5952 GB, free: 12.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5826, allocations: 0 / 0.5952 GB, free: 12.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002057/0.5846, allocations: 0.6484 MB / 0.5959 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.0002856/0.5849, allocations: 176.6 kB / 0.596 GB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003032/0.588, allocations: 2.466 MB / 0.5984 GB, free: 9.094 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.588, allocations: 0 / 0.5984 GB, free: 9.094 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.5896, allocations: 1.408 MB / 0.5998 GB, free: 7.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.5917, allocations: 0.5729 MB / 0.6004 GB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009149/0.6009, allocations: 6.433 MB / 0.6066 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.6033, allocations: 2.524 MB / 0.6091 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002186/0.6055, allocations: 0.5172 MB / 0.6096 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004563/0.6059, allocations: 155.4 kB / 0.6098 GB, free: 13.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6059, allocations: 3.938 kB / 0.6098 GB, free: 13.45 MB / 382.1 MB Notification: Performance of Templates: time 0.05658/0.6625, allocations: 29.87 MB / 0.6389 GB, free: 15.94 MB / 414.1 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)