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.001671/0.001671, allocations: 103.9 kB / 16.27 MB, free: 5.98 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.476/1.476, allocations: 222.9 MB / 239.9 MB, free: 4.621 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.001699/0.001699, allocations: 192.5 kB / 290.2 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03424/0.03424, allocations: 8.799 MB / 349.2 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 81.61 kB / 411.7 MB, free: 42.26 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.09696, allocations: 51.57 MB / 463.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01779/0.1148, allocations: 15.81 MB / 479.1 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.1261, allocations: 5.27 MB / 484.4 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003774/0.1299, allocations: 99.56 kB / 484.5 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004274/0.1342, allocations: 1.211 MB / 485.7 MB, free: 7.996 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.006388/0.1407, allocations: 1.549 MB / 487.3 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003059/0.1437, allocations: 0.97 MB / 488.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00696/0.1507, allocations: 4.672 MB / 492.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005919/0.1567, allocations: 3.528 MB / 496.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003701/0.1604, allocations: 2.095 MB / 498.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004373/0.1648, allocations: 2.424 MB / 0.4892 GB, free: 8.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001557/0.1664, allocations: 0.5742 MB / 0.4898 GB, free: 8.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002603/0.169, allocations: 0.7927 MB / 0.4905 GB, free: 7.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001727/0.1708, allocations: 1.293 MB / 0.4918 GB, free: 5.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005158/0.1759, allocations: 2.439 MB / 0.4942 GB, free: 3.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01098/0.187, allocations: 7.454 MB / 0.5015 GB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.187, allocations: 0 / 0.5015 GB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.187, allocations: 0 / 0.5015 GB, free: 12.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002559/0.1873, allocations: 0 / 0.5015 GB, free: 12.06 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.01719/0.2045, allocations: 4.974 MB / 0.5063 GB, free: 7.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.2046, allocations: 12.03 kB / 0.5063 GB, free: 7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006514/0.2111, allocations: 0.9484 MB / 0.5073 GB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007518/0.2186, allocations: 2.762 MB / 0.51 GB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003492/0.219, allocations: 275.8 kB / 0.5102 GB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001464/0.2205, allocations: 380 kB / 0.5106 GB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/0.2335, allocations: 4.765 MB / 0.5152 GB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001574/0.2337, allocations: 7.938 kB / 0.5152 GB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001045/0.2348, allocations: 148 kB / 0.5154 GB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002001/0.235, allocations: 159.3 kB / 0.5155 GB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01018/0.2452, allocations: 4.038 MB / 0.5195 GB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2298/0.475, allocations: 15.74 MB / 0.5349 GB, free: 56.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006937/0.482, allocations: 6.921 MB / 0.5416 GB, free: 51.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003031/0.4851, allocations: 1.509 MB / 0.5431 GB, free: 51.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008491/0.4936, allocations: 4.173 MB / 0.5472 GB, free: 50.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.4937, allocations: 53.73 kB / 0.5472 GB, free: 50.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 5.39e-06/0.4937, allocations: 0 / 0.5472 GB, free: 50.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01471/0.5084, allocations: 6.375 MB / 0.5534 GB, free: 48.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.5085, allocations: 68.03 kB / 0.5535 GB, free: 48.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006193/0.5147, allocations: 2.18 MB / 0.5556 GB, free: 47.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002406/0.515, allocations: 53.61 kB / 0.5557 GB, free: 47.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.5162, allocations: 1.737 MB / 0.5574 GB, free: 46.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005221/0.5167, allocations: 0.5454 MB / 0.5579 GB, free: 45.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006647/0.5174, allocations: 409.9 kB / 0.5583 GB, free: 45.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.156e-05/0.5175, allocations: 301.1 kB / 0.5586 GB, free: 45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.5187, allocations: 0.823 MB / 0.5594 GB, free: 44.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001577/0.5203, allocations: 1.6 MB / 0.561 GB, free: 43.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003036/0.5234, allocations: 2.582 MB / 0.5635 GB, free: 41.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.486e-05/0.5234, allocations: 7.875 kB / 0.5635 GB, free: 41.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004987/0.5284, allocations: 3.036 MB / 0.5665 GB, free: 39.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.5285, allocations: 11.69 kB / 0.5665 GB, free: 39.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.284e-05/0.5285, allocations: 26.78 kB / 0.5665 GB, free: 39.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008988/0.5294, allocations: 306.5 kB / 0.5668 GB, free: 39.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.5312, allocations: 0.5032 MB / 0.5673 GB, free: 39.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004361/0.5356, allocations: 4.873 MB / 0.572 GB, free: 34.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/0.538, allocations: 98.75 kB / 0.5721 GB, free: 34.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002439/0.5383, allocations: 98.83 kB / 0.5722 GB, free: 34.81 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.002319/0.5406, allocations: 1.142 MB / 0.5733 GB, free: 34.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007692/0.5414, allocations: 239.9 kB / 0.5736 GB, free: 33.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003993/0.5454, allocations: 2.401 MB / 0.5759 GB, free: 32.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.5454, allocations: 18.19 kB / 0.5759 GB, free: 32.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.5455, allocations: 4.094 kB / 0.5759 GB, free: 32.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/0.5455, allocations: 7.969 kB / 0.5759 GB, free: 32.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009981/0.5555, allocations: 5.704 MB / 0.5815 GB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/0.5555, allocations: 4 kB / 0.5815 GB, free: 27.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.5567, allocations: 275.8 kB / 0.5818 GB, free: 26.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007766/0.5575, allocations: 316.6 kB / 0.5821 GB, free: 26.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.5576, allocations: 36 kB / 0.5821 GB, free: 26.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005244/0.5629, allocations: 7.032 MB / 0.589 GB, free: 19.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5629, allocations: 0 / 0.589 GB, free: 19.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005141/0.5681, allocations: 3.486 MB / 0.5924 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.5694, allocations: 490.2 kB / 0.5929 GB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007084/0.5701, allocations: 32 kB / 0.5929 GB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001569/0.5717, allocations: 67.95 kB / 0.5929 GB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.5721, allocations: 121 kB / 0.5931 GB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/0.5722, allocations: 43.98 kB / 0.5931 GB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00264/0.5748, allocations: 1.474 MB / 0.5945 GB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5748, allocations: 192 / 0.5945 GB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003369/0.5782, allocations: 0.6484 MB / 0.5952 GB, free: 12.66 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.0004376/0.5787, allocations: 177.1 kB / 0.5953 GB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005974/0.5846, allocations: 3.043 MB / 0.5983 GB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.5847, allocations: 0 / 0.5983 GB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.5866, allocations: 1.407 MB / 0.5997 GB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00377/0.5904, allocations: 0.5598 MB / 0.6002 GB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01223/0.6027, allocations: 6.494 MB / 0.6066 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002913/0.6056, allocations: 2.454 MB / 0.609 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008712/0.6065, allocations: 175.4 kB / 0.6091 GB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.6065, allocations: 0 / 0.6091 GB, free: 14.25 MB / 382.1 MB Notification: Performance of Templates: time 0.3139/0.9205, allocations: 99.73 MB / 0.7065 GB, free: 149 MB / 462.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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)