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.001417/0.001417, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.249/1.249, allocations: 222.9 MB / 238.8 MB, free: 4.727 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.001174/0.001174, allocations: 188.5 kB / 289.1 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03165/0.03165, allocations: 8.786 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 72.64 kB / 410.4 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08077/0.08205, allocations: 51.56 MB / 462 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01367/0.09576, allocations: 15.62 MB / 477.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008218/0.104, allocations: 5.216 MB / 482.8 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.1065, allocations: 87.69 kB / 482.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.109, allocations: 1.065 MB / 483.9 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.003539/0.1126, allocations: 1.411 MB / 485.3 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.1143, allocations: 0.897 MB / 486.2 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005168/0.1195, allocations: 4.995 MB / 491.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003153/0.1226, allocations: 2.933 MB / 494.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.125, allocations: 1.704 MB / 495.9 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002325/0.1273, allocations: 2.245 MB / 498.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005022/0.1278, allocations: 340 kB / 498.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.1291, allocations: 0.5466 MB / 499 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008129/0.1299, allocations: 1.051 MB / 0.4883 GB, free: 8.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001929/0.1319, allocations: 2.173 MB / 0.4905 GB, free: 6.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006336/0.1382, allocations: 7.259 MB / 0.4975 GB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1382, allocations: 0 / 0.4975 GB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1382, allocations: 0 / 0.4975 GB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001812/0.1384, allocations: 4 kB / 0.4975 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.01088/0.1493, allocations: 4.951 MB / 0.5024 GB, free: 10.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1494, allocations: 12.03 kB / 0.5024 GB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004678/0.1541, allocations: 0.9484 MB / 0.5033 GB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004734/0.1588, allocations: 2.653 MB / 0.5059 GB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.159, allocations: 279.8 kB / 0.5062 GB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005447/0.1596, allocations: 372 kB / 0.5065 GB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007678/0.1673, allocations: 4.78 MB / 0.5112 GB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.517e-05/0.1673, allocations: 4 kB / 0.5112 GB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003146/0.1677, allocations: 152 kB / 0.5113 GB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.1678, allocations: 151.4 kB / 0.5115 GB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006002/0.1738, allocations: 4.05 MB / 0.5154 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1938/0.3677, allocations: 15.81 MB / 0.5309 GB, free: 57.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005093/0.3728, allocations: 6.937 MB / 0.5377 GB, free: 52.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002318/0.3751, allocations: 1.53 MB / 0.5392 GB, free: 52.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006833/0.382, allocations: 4.236 MB / 0.5433 GB, free: 51.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.382, allocations: 46.06 kB / 0.5433 GB, free: 51.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 2.745e-06/0.3821, allocations: 1.25 kB / 0.5433 GB, free: 51.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01126/0.3933, allocations: 6.458 MB / 0.5496 GB, free: 50.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.3934, allocations: 68.09 kB / 0.5497 GB, free: 49.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003179/0.3966, allocations: 2.232 MB / 0.5519 GB, free: 49.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.3967, allocations: 58.52 kB / 0.5519 GB, free: 49.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007484/0.3975, allocations: 1.708 MB / 0.5536 GB, free: 47.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002807/0.3977, allocations: 0.544 MB / 0.5541 GB, free: 47.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004436/0.3982, allocations: 395.3 kB / 0.5545 GB, free: 47.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.54e-05/0.3982, allocations: 305.1 kB / 0.5548 GB, free: 46.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.3993, allocations: 0.8257 MB / 0.5556 GB, free: 46.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.4005, allocations: 1.476 MB / 0.5571 GB, free: 45.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002322/0.4029, allocations: 2.45 MB / 0.5595 GB, free: 43.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/0.4029, allocations: 6.125 kB / 0.5595 GB, free: 43.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.003846/0.4067, allocations: 2.952 MB / 0.5623 GB, free: 42.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.4068, allocations: 19.66 kB / 0.5624 GB, free: 42.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.4068, allocations: 23.42 kB / 0.5624 GB, free: 42.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000768/0.4076, allocations: 298.4 kB / 0.5627 GB, free: 42.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.4092, allocations: 484.6 kB / 0.5631 GB, free: 41.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/0.4128, allocations: 4.507 MB / 0.5675 GB, free: 37.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.4146, allocations: 93.72 kB / 0.5676 GB, free: 37.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.4147, allocations: 94.27 kB / 0.5677 GB, free: 37.91 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.001695/0.4164, allocations: 1.117 MB / 0.5688 GB, free: 37.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003409/0.4168, allocations: 231.8 kB / 0.569 GB, free: 37.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003301/0.4201, allocations: 2.427 MB / 0.5714 GB, free: 35.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.4201, allocations: 22.39 kB / 0.5714 GB, free: 35.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4201, allocations: 3.562 kB / 0.5714 GB, free: 35.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.4201, allocations: 11.91 kB / 0.5714 GB, free: 35.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006886/0.427, allocations: 5.789 MB / 0.5771 GB, free: 30.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.427, allocations: 4 kB / 0.5771 GB, free: 30.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.4281, allocations: 275.6 kB / 0.5773 GB, free: 30.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007445/0.4289, allocations: 320.8 kB / 0.5777 GB, free: 30.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.429, allocations: 46.94 kB / 0.5777 GB, free: 30.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004569/0.4336, allocations: 6.432 MB / 0.584 GB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.4336, allocations: 3.938 kB / 0.584 GB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004177/0.4378, allocations: 3.514 MB / 0.5874 GB, free: 19.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009713/0.4387, allocations: 0.4969 MB / 0.5879 GB, free: 19.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005147/0.4393, allocations: 36 kB / 0.5879 GB, free: 19.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.4405, allocations: 67.89 kB / 0.588 GB, free: 19.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.4407, allocations: 125 kB / 0.5881 GB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.801e-05/0.4408, allocations: 43.98 kB / 0.5882 GB, free: 19.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002046/0.4429, allocations: 1.519 MB / 0.5896 GB, free: 17.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4429, allocations: 0 / 0.5896 GB, free: 17.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002158/0.4451, allocations: 0.6561 MB / 0.5903 GB, free: 16.84 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.0002751/0.4453, allocations: 164.2 kB / 0.5904 GB, free: 16.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.4484, allocations: 2.435 MB / 0.5928 GB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4484, allocations: 0 / 0.5928 GB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.4501, allocations: 1.412 MB / 0.5942 GB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/0.4526, allocations: 0.5519 MB / 0.5947 GB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.4629, allocations: 8.057 MB / 0.6026 GB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002019/0.4649, allocations: 2.517 MB / 0.6051 GB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001662/0.4666, allocations: 0.5077 MB / 0.6056 GB, free: 1.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/0.4671, allocations: 155.4 kB / 0.6057 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4671, allocations: 0 / 0.6057 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of Templates: time 0.04921/0.5163, allocations: 31.28 MB / 0.6363 GB, free: 1.938 MB / 398.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)