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.001146/0.001146, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.223/1.223, allocations: 222.9 MB / 238.8 MB, free: 4.762 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.001103/0.001103, allocations: 176.5 kB / 289.1 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.03203/0.03203, allocations: 8.788 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 76.45 kB / 410.4 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07957/0.08081, allocations: 51.56 MB / 462 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01564/0.09651, allocations: 15.63 MB / 477.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008914/0.1055, allocations: 5.216 MB / 482.8 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.108, allocations: 91.69 kB / 482.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003509/0.1115, allocations: 1.061 MB / 483.9 MB, free: 8.793 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.00441/0.116, allocations: 1.422 MB / 485.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0022/0.1182, allocations: 0.896 MB / 486.3 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005998/0.1242, allocations: 4.999 MB / 491.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003863/0.1281, allocations: 2.926 MB / 494.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00217/0.1303, allocations: 1.704 MB / 495.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002892/0.1332, allocations: 2.245 MB / 498.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007642/0.134, allocations: 336 kB / 498.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001438/0.1354, allocations: 0.5505 MB / 499 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008613/0.1363, allocations: 1.043 MB / 0.4883 GB, free: 8.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002336/0.1387, allocations: 2.177 MB / 0.4905 GB, free: 6.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006087/0.1448, allocations: 7.263 MB / 0.4976 GB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1448, allocations: 0 / 0.4976 GB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1448, allocations: 0 / 0.4976 GB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001482/0.1449, allocations: 0 / 0.4976 GB, free: 15.09 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.01104/0.156, allocations: 4.951 MB / 0.5024 GB, free: 10.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.156, allocations: 12.03 kB / 0.5024 GB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004924/0.161, allocations: 0.9562 MB / 0.5033 GB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005118/0.1661, allocations: 2.649 MB / 0.5059 GB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.1663, allocations: 279.8 kB / 0.5062 GB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005767/0.1669, allocations: 372 kB / 0.5065 GB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007952/0.1749, allocations: 4.772 MB / 0.5112 GB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-05/0.1749, allocations: 7.938 kB / 0.5112 GB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003111/0.1753, allocations: 152 kB / 0.5114 GB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/0.1754, allocations: 159.3 kB / 0.5115 GB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006486/0.1819, allocations: 4.046 MB / 0.5155 GB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1796/0.3615, allocations: 15.81 MB / 0.5309 GB, free: 57.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004794/0.3663, allocations: 6.935 MB / 0.5377 GB, free: 52.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002231/0.3686, allocations: 1.531 MB / 0.5392 GB, free: 52.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006288/0.3749, allocations: 4.235 MB / 0.5433 GB, free: 52.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.3749, allocations: 49.44 kB / 0.5434 GB, free: 51.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 2.796e-06/0.3749, allocations: 1 kB / 0.5434 GB, free: 51.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01136/0.3863, allocations: 6.454 MB / 0.5497 GB, free: 50.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.3864, allocations: 67.59 kB / 0.5497 GB, free: 50.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00312/0.3895, allocations: 2.238 MB / 0.5519 GB, free: 49.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.3896, allocations: 51.61 kB / 0.552 GB, free: 49.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008039/0.3904, allocations: 1.709 MB / 0.5536 GB, free: 48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/0.3907, allocations: 0.5424 MB / 0.5542 GB, free: 47.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004479/0.3912, allocations: 384.9 kB / 0.5545 GB, free: 47.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.456e-05/0.3912, allocations: 309.6 kB / 0.5548 GB, free: 47.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.3923, allocations: 0.8205 MB / 0.5556 GB, free: 46.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.3935, allocations: 1.483 MB / 0.5571 GB, free: 45.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002375/0.3959, allocations: 2.452 MB / 0.5595 GB, free: 43.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/0.3959, allocations: 10.31 kB / 0.5595 GB, free: 43.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.003863/0.3998, allocations: 2.946 MB / 0.5624 GB, free: 42.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.3998, allocations: 15.84 kB / 0.5624 GB, free: 42.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.3999, allocations: 24.94 kB / 0.5624 GB, free: 42.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007282/0.4006, allocations: 304.5 kB / 0.5627 GB, free: 42.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.4021, allocations: 487.8 kB / 0.5631 GB, free: 42.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003302/0.4054, allocations: 4.506 MB / 0.5675 GB, free: 38.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.4069, allocations: 93.12 kB / 0.5676 GB, free: 38.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.407, allocations: 90.47 kB / 0.5677 GB, free: 38.05 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.001429/0.4085, allocations: 1.126 MB / 0.5688 GB, free: 37.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003133/0.4088, allocations: 236.2 kB / 0.569 GB, free: 37.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003134/0.4119, allocations: 2.421 MB / 0.5714 GB, free: 35.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.4119, allocations: 17.39 kB / 0.5714 GB, free: 35.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.4119, allocations: 4.969 kB / 0.5714 GB, free: 35.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.412, allocations: 7.922 kB / 0.5714 GB, free: 35.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006735/0.4187, allocations: 5.794 MB / 0.5771 GB, free: 31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.4187, allocations: 4 kB / 0.5771 GB, free: 30.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.4198, allocations: 275.6 kB / 0.5774 GB, free: 30.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007149/0.4205, allocations: 319.8 kB / 0.5777 GB, free: 30.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-05/0.4206, allocations: 39.98 kB / 0.5777 GB, free: 30.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004356/0.425, allocations: 6.443 MB / 0.584 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.425, allocations: 4.031 kB / 0.584 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003924/0.4289, allocations: 3.518 MB / 0.5874 GB, free: 19.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007193/0.4297, allocations: 0.4942 MB / 0.5879 GB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003341/0.43, allocations: 32.95 kB / 0.588 GB, free: 19.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.431, allocations: 63.95 kB / 0.588 GB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.4312, allocations: 122 kB / 0.5881 GB, free: 19.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-05/0.4313, allocations: 47.98 kB / 0.5882 GB, free: 19.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001656/0.433, allocations: 1.515 MB / 0.5897 GB, free: 17.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.433, allocations: 0 / 0.5897 GB, free: 17.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001763/0.4348, allocations: 0.6563 MB / 0.5903 GB, free: 16.99 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.0002411/0.435, allocations: 165.2 kB / 0.5905 GB, free: 16.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002795/0.4378, allocations: 2.434 MB / 0.5928 GB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.4378, allocations: 1 kB / 0.5928 GB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001526/0.4394, allocations: 1.413 MB / 0.5942 GB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.4415, allocations: 0.5439 MB / 0.5947 GB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.4516, allocations: 8.06 MB / 0.6026 GB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002095/0.4537, allocations: 2.517 MB / 0.6051 GB, free: 1.734 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00174/0.4554, allocations: 0.5116 MB / 0.6056 GB, free: 1.219 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004892/0.4559, allocations: 151.4 kB / 0.6057 GB, free: 1.07 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4559, allocations: 0 / 0.6057 GB, free: 1.07 MB / 366.1 MB Notification: Performance of Templates: time 0.04925/0.5052, allocations: 31.29 MB / 0.6363 GB, free: 2.07 MB / 398.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)