Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, 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.469/2.469, allocations: 222.9 MB / 239.5 MB, free: 4.73 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.002135/0.002135, allocations: 188.2 kB / 289.8 MB, free: 2.477 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06201/0.06201, allocations: 8.785 MB / 348.7 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 77.83 kB / 411.1 MB, free: 42.46 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1468, allocations: 51.57 MB / 462.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.02814/0.175, allocations: 15.62 MB / 478.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.1926, allocations: 5.224 MB / 483.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005967/0.1986, allocations: 87.69 kB / 483.6 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00667/0.2053, allocations: 1.061 MB / 484.6 MB, free: 8.789 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.009373/0.2148, allocations: 1.417 MB / 486 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004725/0.2195, allocations: 0.8993 MB / 486.9 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01234/0.2319, allocations: 4.992 MB / 491.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008196/0.2401, allocations: 2.933 MB / 494.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005655/0.2459, allocations: 1.7 MB / 496.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006547/0.2525, allocations: 2.245 MB / 498.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002369/0.2549, allocations: 340 kB / 499.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003775/0.2587, allocations: 0.5466 MB / 499.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002734/0.2615, allocations: 1.047 MB / 0.489 GB, free: 8.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00722/0.2687, allocations: 2.177 MB / 0.4911 GB, free: 6.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01236/0.2812, allocations: 6.29 MB / 0.4973 GB, free: 76 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.2812, allocations: 0 / 0.4973 GB, free: 76 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2813, allocations: 0 / 0.4973 GB, free: 76 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002662/0.2815, allocations: 4 kB / 0.4973 GB, free: 72 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.02658/0.3081, allocations: 4.959 MB / 0.5021 GB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.545e-05/0.3082, allocations: 8.031 kB / 0.5021 GB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.3197, allocations: 0.9561 MB / 0.503 GB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/0.3308, allocations: 2.649 MB / 0.5056 GB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000487/0.3313, allocations: 279.8 kB / 0.5059 GB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002845/0.3342, allocations: 372 kB / 0.5063 GB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02257/0.3568, allocations: 4.772 MB / 0.5109 GB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001824/0.3571, allocations: 3.984 kB / 0.5109 GB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001363/0.3584, allocations: 160 kB / 0.5111 GB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002995/0.3588, allocations: 155.4 kB / 0.5112 GB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01656/0.3753, allocations: 4.046 MB / 0.5152 GB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4348/0.8101, allocations: 15.81 MB / 0.5306 GB, free: 58.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009966/0.8202, allocations: 6.943 MB / 0.5374 GB, free: 53.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004955/0.8252, allocations: 1.525 MB / 0.5389 GB, free: 53.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01669/0.8419, allocations: 4.234 MB / 0.543 GB, free: 52.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/0.8421, allocations: 48.47 kB / 0.5431 GB, free: 52.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 8.316e-06/0.8421, allocations: 3.156 kB / 0.5431 GB, free: 52.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.02484/0.867, allocations: 6.455 MB / 0.5494 GB, free: 51.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.8671, allocations: 72.69 kB / 0.5494 GB, free: 51.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007806/0.8749, allocations: 2.226 MB / 0.5516 GB, free: 50.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004932/0.8754, allocations: 52.11 kB / 0.5517 GB, free: 50.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002173/0.8776, allocations: 1.714 MB / 0.5533 GB, free: 49.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008727/0.8785, allocations: 0.539 MB / 0.5539 GB, free: 48.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008876/0.8794, allocations: 389.9 kB / 0.5542 GB, free: 48.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.646e-05/0.8795, allocations: 309 kB / 0.5545 GB, free: 48.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/0.8816, allocations: 0.8272 MB / 0.5553 GB, free: 48.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002624/0.8843, allocations: 1.474 MB / 0.5568 GB, free: 47.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00456/0.8888, allocations: 2.453 MB / 0.5592 GB, free: 45.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-05/0.8889, allocations: 4.531 kB / 0.5592 GB, free: 45.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008326/0.8972, allocations: 2.958 MB / 0.5621 GB, free: 43.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.588e-05/0.8974, allocations: 19.09 kB / 0.5621 GB, free: 43.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.494e-05/0.8975, allocations: 22.62 kB / 0.5621 GB, free: 43.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.8988, allocations: 298.7 kB / 0.5624 GB, free: 43.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002993/0.9018, allocations: 487 kB / 0.5629 GB, free: 43.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006451/0.9083, allocations: 4.5 MB / 0.5673 GB, free: 39.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004501/0.9129, allocations: 84.69 kB / 0.5673 GB, free: 39.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000562/0.9135, allocations: 103.4 kB / 0.5674 GB, free: 39.59 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.004091/0.9176, allocations: 1.126 MB / 0.5685 GB, free: 38.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/0.9189, allocations: 229.5 kB / 0.5687 GB, free: 38.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0061/0.925, allocations: 2.433 MB / 0.5711 GB, free: 37.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.9251, allocations: 13.81 kB / 0.5711 GB, free: 37.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.9251, allocations: 3.562 kB / 0.5711 GB, free: 37.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.086e-05/0.9251, allocations: 11.91 kB / 0.5712 GB, free: 37.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/0.9386, allocations: 5.789 MB / 0.5768 GB, free: 31.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.812e-05/0.9387, allocations: 8.969 kB / 0.5768 GB, free: 31.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002093/0.9408, allocations: 275.8 kB / 0.5771 GB, free: 31.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.9424, allocations: 327.2 kB / 0.5774 GB, free: 31.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001999/0.9426, allocations: 35.98 kB / 0.5774 GB, free: 31.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008649/0.9512, allocations: 6.439 MB / 0.5837 GB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.9513, allocations: 4.031 kB / 0.5837 GB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009163/0.9605, allocations: 3.521 MB / 0.5872 GB, free: 20.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002386/0.963, allocations: 0.4942 MB / 0.5876 GB, free: 20.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001019/0.964, allocations: 32 kB / 0.5877 GB, free: 20.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00241/0.9664, allocations: 67.95 kB / 0.5877 GB, free: 20.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004526/0.9669, allocations: 125 kB / 0.5879 GB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/0.9671, allocations: 39.98 kB / 0.5879 GB, free: 19.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003909/0.971, allocations: 1.515 MB / 0.5894 GB, free: 18.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9711, allocations: 0 / 0.5894 GB, free: 18.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005628/0.9767, allocations: 0.6562 MB / 0.59 GB, free: 17.8 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.0006738/0.9774, allocations: 156.7 kB / 0.5902 GB, free: 17.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006029/0.9835, allocations: 2.437 MB / 0.5925 GB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/0.9835, allocations: 4 kB / 0.5925 GB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003336/0.9869, allocations: 1.41 MB / 0.5939 GB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005547/0.9925, allocations: 0.5472 MB / 0.5945 GB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/1.012, allocations: 8.034 MB / 0.6023 GB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002899/1.015, allocations: 2.454 MB / 0.6047 GB, free: 2.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/1.016, allocations: 171.4 kB / 0.6049 GB, free: 2.484 MB / 366.1 MB Notification: Performance of SimCode: time 1.963e-06/1.017, allocations: 7.875 kB / 0.6049 GB, free: 2.477 MB / 366.1 MB Notification: Performance of Templates: time 0.5714/1.588, allocations: 99.78 MB / 0.7023 GB, free: 145.5 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)