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.01431/0.01431, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.851/1.851, allocations: 222.9 MB / 239.5 MB, free: 4.812 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.002551/0.002551, allocations: 188.5 kB / 289.8 MB, free: 2.543 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05639/0.05639, allocations: 8.784 MB / 348.7 MB, free: 4.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002501/0.002502, allocations: 79.61 kB / 411.1 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1501, allocations: 51.56 MB / 462.6 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.02738/0.1776, allocations: 15.63 MB / 478.3 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01692/0.1946, allocations: 5.216 MB / 483.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006545/0.2012, allocations: 87.69 kB / 483.6 MB, free: 9.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00631/0.2076, allocations: 1.065 MB / 484.6 MB, free: 8.895 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.009134/0.2168, allocations: 1.414 MB / 486 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004632/0.2215, allocations: 0.8861 MB / 486.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.2328, allocations: 4.999 MB / 491.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007271/0.2401, allocations: 2.929 MB / 494.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004708/0.2449, allocations: 1.708 MB / 496.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005921/0.2509, allocations: 2.249 MB / 498.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002163/0.2531, allocations: 340 kB / 499.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0042/0.2573, allocations: 0.5388 MB / 499.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002253/0.2596, allocations: 1.043 MB / 0.489 GB, free: 8.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005978/0.2656, allocations: 2.181 MB / 0.4911 GB, free: 6.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.2767, allocations: 6.29 MB / 0.4973 GB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.068e-05/0.2768, allocations: 0 / 0.4973 GB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd: time 7.985e-06/0.2768, allocations: 3.984 kB / 0.4973 GB, free: 184 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003009/0.2771, allocations: 3.938 kB / 0.4973 GB, free: 180 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.02398/0.3011, allocations: 4.951 MB / 0.5021 GB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.704e-05/0.3012, allocations: 16.03 kB / 0.5021 GB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009867/0.3111, allocations: 0.9445 MB / 0.503 GB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.3212, allocations: 2.657 MB / 0.5056 GB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004502/0.3217, allocations: 279.8 kB / 0.5059 GB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001996/0.3238, allocations: 368 kB / 0.5063 GB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.3408, allocations: 4.776 MB / 0.5109 GB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001191/0.341, allocations: 7.938 kB / 0.5109 GB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006053/0.3416, allocations: 144 kB / 0.5111 GB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002357/0.3418, allocations: 159.3 kB / 0.5112 GB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01406/0.3559, allocations: 4.054 MB / 0.5152 GB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4391/0.7951, allocations: 15.81 MB / 0.5306 GB, free: 58.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009833/0.805, allocations: 6.939 MB / 0.5374 GB, free: 53.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004999/0.81, allocations: 1.529 MB / 0.5389 GB, free: 53.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.8237, allocations: 4.232 MB / 0.543 GB, free: 53.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.8238, allocations: 49.66 kB / 0.5431 GB, free: 53.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 8.035e-06/0.8238, allocations: 3.031 kB / 0.5431 GB, free: 53.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.0219/0.8458, allocations: 6.454 MB / 0.5494 GB, free: 51.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.8459, allocations: 67.19 kB / 0.5494 GB, free: 51.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006404/0.8523, allocations: 2.234 MB / 0.5516 GB, free: 50.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004307/0.8528, allocations: 52.2 kB / 0.5517 GB, free: 50.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.8546, allocations: 1.711 MB / 0.5533 GB, free: 49.58 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008041/0.8554, allocations: 0.5439 MB / 0.5539 GB, free: 49.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009174/0.8564, allocations: 389 kB / 0.5542 GB, free: 48.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.078e-05/0.8565, allocations: 307.6 kB / 0.5545 GB, free: 48.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002052/0.8585, allocations: 0.8267 MB / 0.5553 GB, free: 48.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00239/0.8609, allocations: 1.484 MB / 0.5568 GB, free: 47.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004581/0.8655, allocations: 2.451 MB / 0.5592 GB, free: 45.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.808e-05/0.8656, allocations: 6.562 kB / 0.5592 GB, free: 45.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007927/0.8735, allocations: 2.948 MB / 0.5621 GB, free: 44.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.676e-05/0.8736, allocations: 14.81 kB / 0.5621 GB, free: 44.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.712e-05/0.8737, allocations: 22.44 kB / 0.5621 GB, free: 44.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.875, allocations: 302 kB / 0.5624 GB, free: 43.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00292/0.878, allocations: 489.8 kB / 0.5629 GB, free: 43.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006338/0.8843, allocations: 4.507 MB / 0.5673 GB, free: 39.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003783/0.8882, allocations: 82.56 kB / 0.5673 GB, free: 39.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005154/0.8887, allocations: 97.45 kB / 0.5674 GB, free: 39.79 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.003886/0.8926, allocations: 1.119 MB / 0.5685 GB, free: 39.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/0.8937, allocations: 241.5 kB / 0.5688 GB, free: 38.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006186/0.8999, allocations: 2.424 MB / 0.5711 GB, free: 37.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.218e-05/0.9, allocations: 14.78 kB / 0.5711 GB, free: 37.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.9, allocations: 3.844 kB / 0.5711 GB, free: 37.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-05/0.9, allocations: 11.59 kB / 0.5711 GB, free: 37.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.9141, allocations: 5.791 MB / 0.5768 GB, free: 31.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.9142, allocations: 0 / 0.5768 GB, free: 31.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.9161, allocations: 271.8 kB / 0.5771 GB, free: 31.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001367/0.9175, allocations: 331 kB / 0.5774 GB, free: 31.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.9177, allocations: 35.98 kB / 0.5774 GB, free: 31.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007826/0.9256, allocations: 6.448 MB / 0.5837 GB, free: 24.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.9256, allocations: 0 / 0.5837 GB, free: 24.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008332/0.934, allocations: 3.522 MB / 0.5872 GB, free: 20.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/0.9361, allocations: 0.4942 MB / 0.5876 GB, free: 20.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007957/0.9369, allocations: 32 kB / 0.5877 GB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/0.939, allocations: 63.95 kB / 0.5877 GB, free: 20.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004555/0.9395, allocations: 125 kB / 0.5878 GB, free: 20.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/0.9397, allocations: 47.92 kB / 0.5879 GB, free: 20.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00353/0.9432, allocations: 1.515 MB / 0.5894 GB, free: 18.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9433, allocations: 3.938 kB / 0.5894 GB, free: 18.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004687/0.9479, allocations: 0.6523 MB / 0.59 GB, free: 17.95 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.0005907/0.9486, allocations: 169.5 kB / 0.5902 GB, free: 17.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005225/0.9538, allocations: 2.434 MB / 0.5925 GB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.9539, allocations: 0 / 0.5925 GB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002883/0.9568, allocations: 1.413 MB / 0.5939 GB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004835/0.9616, allocations: 0.5346 MB / 0.5945 GB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02074/0.9824, allocations: 8.042 MB / 0.6023 GB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004383/0.9868, allocations: 2.45 MB / 0.6047 GB, free: 2.801 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001442/0.9883, allocations: 171.4 kB / 0.6049 GB, free: 2.633 MB / 366.1 MB Notification: Performance of SimCode: time 1.392e-06/0.9884, allocations: 4 kB / 0.6049 GB, free: 2.629 MB / 366.1 MB Notification: Performance of Templates: time 0.5113/1.5, allocations: 99.79 MB / 0.7023 GB, free: 145.7 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)