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.001189/0.001189, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.269/2.269, allocations: 222.9 MB / 239.5 MB, free: 4.777 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.002281/0.002281, allocations: 200.4 kB / 289.8 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06213/0.06213, allocations: 8.799 MB / 348.7 MB, free: 4.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 78.19 kB / 411.1 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1609, allocations: 51.56 MB / 462.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01854/0.1795, allocations: 15.62 MB / 478.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01251/0.192, allocations: 5.224 MB / 483.5 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004488/0.1966, allocations: 91.69 kB / 483.5 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004674/0.2013, allocations: 1.065 MB / 484.6 MB, free: 8.832 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.006873/0.2082, allocations: 1.406 MB / 486 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003246/0.2115, allocations: 0.8965 MB / 486.9 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007904/0.2194, allocations: 4.989 MB / 491.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004372/0.2238, allocations: 2.93 MB / 494.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.227, allocations: 1.716 MB / 496.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0039/0.2309, allocations: 2.241 MB / 498.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.232, allocations: 340 kB / 499.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00218/0.2342, allocations: 0.5505 MB / 499.7 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001259/0.2354, allocations: 1.035 MB / 0.489 GB, free: 8.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005037/0.2405, allocations: 2.185 MB / 0.4911 GB, free: 6.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007475/0.248, allocations: 6.286 MB / 0.4972 GB, free: 128 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.287e-05/0.248, allocations: 7.984 kB / 0.4973 GB, free: 120 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.2481, allocations: 0 / 0.4973 GB, free: 120 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002266/0.2483, allocations: 0 / 0.4973 GB, free: 120 kB / 334.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.02054/0.2688, allocations: 4.951 MB / 0.5021 GB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.2689, allocations: 8.031 kB / 0.5021 GB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006042/0.275, allocations: 0.96 MB / 0.503 GB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006682/0.2817, allocations: 2.646 MB / 0.5056 GB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002515/0.282, allocations: 287.8 kB / 0.5059 GB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001134/0.2831, allocations: 368 kB / 0.5062 GB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/0.2938, allocations: 4.768 MB / 0.5109 GB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-05/0.2939, allocations: 7.938 kB / 0.5109 GB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003779/0.2943, allocations: 152 kB / 0.5111 GB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001633/0.2945, allocations: 159.3 kB / 0.5112 GB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00844/0.3029, allocations: 4.05 MB / 0.5152 GB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.327/0.63, allocations: 15.81 MB / 0.5306 GB, free: 58.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006742/0.6368, allocations: 6.938 MB / 0.5374 GB, free: 53.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003099/0.6399, allocations: 1.527 MB / 0.5389 GB, free: 53.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009311/0.6493, allocations: 4.239 MB / 0.543 GB, free: 52.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.6494, allocations: 46.09 kB / 0.543 GB, free: 52.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.928e-06/0.6494, allocations: 1.031 kB / 0.5431 GB, free: 52.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01588/0.6653, allocations: 6.458 MB / 0.5494 GB, free: 51.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.6654, allocations: 67.69 kB / 0.5494 GB, free: 51.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004928/0.6703, allocations: 2.229 MB / 0.5516 GB, free: 50.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002719/0.6706, allocations: 57.14 kB / 0.5517 GB, free: 50.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.672, allocations: 1.71 MB / 0.5533 GB, free: 49.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005683/0.6726, allocations: 0.5368 MB / 0.5538 GB, free: 48.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006162/0.6732, allocations: 389.5 kB / 0.5542 GB, free: 48.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.547e-05/0.6733, allocations: 309.2 kB / 0.5545 GB, free: 48.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.6746, allocations: 0.8274 MB / 0.5553 GB, free: 47.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.6763, allocations: 1.479 MB / 0.5568 GB, free: 46.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003087/0.6794, allocations: 2.453 MB / 0.5592 GB, free: 45.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/0.6794, allocations: 6.531 kB / 0.5592 GB, free: 45.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.005574/0.685, allocations: 2.951 MB / 0.562 GB, free: 43.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/0.6851, allocations: 12.31 kB / 0.5621 GB, free: 43.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.003e-05/0.6851, allocations: 29.66 kB / 0.5621 GB, free: 43.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009684/0.6861, allocations: 303.1 kB / 0.5624 GB, free: 43.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/0.688, allocations: 482.1 kB / 0.5628 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005468/0.6935, allocations: 4.503 MB / 0.5672 GB, free: 39.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003177/0.6967, allocations: 95.17 kB / 0.5673 GB, free: 39.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004181/0.6972, allocations: 95.12 kB / 0.5674 GB, free: 39.35 MB / 366.1 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.003735/0.7009, allocations: 1.126 MB / 0.5685 GB, free: 38.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009836/0.7019, allocations: 232.9 kB / 0.5687 GB, free: 38.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/0.7065, allocations: 2.419 MB / 0.5711 GB, free: 36.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.7065, allocations: 19.06 kB / 0.5711 GB, free: 36.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.7065, allocations: 11.36 kB / 0.5711 GB, free: 36.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.7065, allocations: 3.984 kB / 0.5711 GB, free: 36.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.718, allocations: 5.797 MB / 0.5768 GB, free: 31.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.7181, allocations: 0 / 0.5768 GB, free: 31.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.7195, allocations: 279.6 kB / 0.5771 GB, free: 31.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009969/0.7205, allocations: 321.8 kB / 0.5774 GB, free: 31.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000156/0.7207, allocations: 43.98 kB / 0.5774 GB, free: 31.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006914/0.7276, allocations: 6.43 MB / 0.5837 GB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.7277, allocations: 0 / 0.5837 GB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007117/0.7348, allocations: 3.524 MB / 0.5871 GB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001955/0.7369, allocations: 0.4903 MB / 0.5876 GB, free: 20.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/0.738, allocations: 40 kB / 0.5876 GB, free: 20.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002181/0.7402, allocations: 59.95 kB / 0.5877 GB, free: 20.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000475/0.7407, allocations: 125 kB / 0.5878 GB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/0.7409, allocations: 39.98 kB / 0.5879 GB, free: 19.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003581/0.7445, allocations: 1.523 MB / 0.5893 GB, free: 18.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.7445, allocations: 0 / 0.5893 GB, free: 18.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003812/0.7483, allocations: 0.6523 MB / 0.59 GB, free: 17.79 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.0005384/0.7489, allocations: 169.4 kB / 0.5901 GB, free: 17.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004278/0.7531, allocations: 2.43 MB / 0.5925 GB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.7532, allocations: 6 kB / 0.5925 GB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002309/0.7555, allocations: 1.406 MB / 0.5939 GB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004459/0.76, allocations: 0.5527 MB / 0.5944 GB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/0.7762, allocations: 8.034 MB / 0.6023 GB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.7792, allocations: 2.45 MB / 0.6047 GB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.7805, allocations: 175.4 kB / 0.6048 GB, free: 2.461 MB / 366.1 MB Notification: Performance of SimCode: time 2.835e-06/0.7805, allocations: 0 / 0.6048 GB, free: 2.461 MB / 366.1 MB Notification: Performance of Templates: time 0.3964/1.177, allocations: 99.79 MB / 0.7023 GB, free: 145.8 MB / 462.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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)