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.0009386/0.0009386, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.494/1.494, allocations: 223.3 MB / 239.4 MB, free: 5.527 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: 176.5 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03346/0.03346, allocations: 8.805 MB / 350.5 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005483/0.0005486, allocations: 11.12 kB / 413.8 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09098/0.09156, allocations: 52.56 MB / 466.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01531/0.1069, allocations: 14.9 MB / 481.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009337/0.1163, allocations: 5.158 MB / 486.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00247/0.1188, allocations: 83.69 kB / 486.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003363/0.1222, allocations: 1.069 MB / 487.6 MB, free: 7.859 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.005103/0.1273, allocations: 1.391 MB / 489 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002738/0.1301, allocations: 0.8965 MB / 489.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007196/0.1373, allocations: 4.991 MB / 494.9 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004376/0.1417, allocations: 2.906 MB / 497.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002765/0.1445, allocations: 1.49 MB / 499.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003185/0.1477, allocations: 1.979 MB / 0.4895 GB, free: 10.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001018/0.1487, allocations: 236 kB / 0.4897 GB, free: 9.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001759/0.1505, allocations: 447.8 kB / 0.4901 GB, free: 9.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001243/0.1517, allocations: 0.8909 MB / 0.491 GB, free: 8.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003132/0.1549, allocations: 2.03 MB / 0.493 GB, free: 6.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008157/0.1631, allocations: 7.011 MB / 0.4998 GB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1631, allocations: 4 kB / 0.4998 GB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1631, allocations: 0 / 0.4998 GB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003226/0.1634, allocations: 0 / 0.4998 GB, free: 15.45 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.01226/0.1757, allocations: 4.214 MB / 0.504 GB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1758, allocations: 8.031 kB / 0.504 GB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005431/0.1812, allocations: 0.9601 MB / 0.5049 GB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005569/0.1868, allocations: 2.661 MB / 0.5075 GB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002815/0.1871, allocations: 279.8 kB / 0.5078 GB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.1881, allocations: 376 kB / 0.5081 GB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009982/0.1981, allocations: 4.784 MB / 0.5128 GB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.962e-05/0.1982, allocations: 0 / 0.5128 GB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003333/0.1986, allocations: 152 kB / 0.5129 GB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.1987, allocations: 155.3 kB / 0.5131 GB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007145/0.2059, allocations: 4.066 MB / 0.5171 GB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2186/0.4245, allocations: 15.91 MB / 0.5326 GB, free: 58.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005293/0.4299, allocations: 6.946 MB / 0.5394 GB, free: 53.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/0.4325, allocations: 1.536 MB / 0.5409 GB, free: 53.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008951/0.4414, allocations: 4.249 MB / 0.545 GB, free: 52.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.4415, allocations: 45.78 kB / 0.5451 GB, free: 52.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.298e-06/0.4415, allocations: 2.25 kB / 0.5451 GB, free: 52.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01393/0.4555, allocations: 6.513 MB / 0.5514 GB, free: 50.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.4556, allocations: 67.72 kB / 0.5515 GB, free: 50.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004451/0.46, allocations: 2.234 MB / 0.5537 GB, free: 50.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003801/0.4604, allocations: 51.08 kB / 0.5537 GB, free: 49.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001164/0.4616, allocations: 1.702 MB / 0.5554 GB, free: 48.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000623/0.4622, allocations: 0.5477 MB / 0.5559 GB, free: 48.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/0.4625, allocations: 171.6 kB / 0.5561 GB, free: 48.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.176e-05/0.4626, allocations: 309 kB / 0.5564 GB, free: 47.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.4639, allocations: 0.8307 MB / 0.5572 GB, free: 47.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.4653, allocations: 1.489 MB / 0.5586 GB, free: 46.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002673/0.468, allocations: 2.466 MB / 0.5611 GB, free: 44.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.468, allocations: 5.219 kB / 0.5611 GB, free: 44.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.005034/0.4731, allocations: 2.975 MB / 0.564 GB, free: 43.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.4731, allocations: 22.47 kB / 0.564 GB, free: 43.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.971e-05/0.4732, allocations: 22.19 kB / 0.564 GB, free: 43.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008529/0.474, allocations: 297.8 kB / 0.5643 GB, free: 43.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.4757, allocations: 488.5 kB / 0.5648 GB, free: 42.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003827/0.4796, allocations: 4.513 MB / 0.5692 GB, free: 39.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002482/0.4821, allocations: 85.66 kB / 0.5692 GB, free: 38.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002004/0.4823, allocations: 96.7 kB / 0.5693 GB, free: 38.95 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.002169/0.4845, allocations: 1.122 MB / 0.5704 GB, free: 38.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004794/0.485, allocations: 234.4 kB / 0.5707 GB, free: 38.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003699/0.4887, allocations: 2.44 MB / 0.573 GB, free: 36.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.4887, allocations: 15.56 kB / 0.5731 GB, free: 36.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.4887, allocations: 6.938 kB / 0.5731 GB, free: 36.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.4887, allocations: 11.91 kB / 0.5731 GB, free: 36.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00762/0.4963, allocations: 5.804 MB / 0.5787 GB, free: 31.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.4964, allocations: 3.984 kB / 0.5787 GB, free: 31.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.4975, allocations: 279.8 kB / 0.579 GB, free: 31.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007862/0.4983, allocations: 327 kB / 0.5793 GB, free: 30.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.982e-05/0.4984, allocations: 39.98 kB / 0.5794 GB, free: 30.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004733/0.5031, allocations: 6.448 MB / 0.5857 GB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5032, allocations: 0 / 0.5857 GB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004822/0.508, allocations: 3.546 MB / 0.5891 GB, free: 20.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.5092, allocations: 0.4904 MB / 0.5896 GB, free: 19.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000325/0.5095, allocations: 39.98 kB / 0.5896 GB, free: 19.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.5107, allocations: 71.95 kB / 0.5897 GB, free: 19.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002695/0.5109, allocations: 121 kB / 0.5898 GB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.033e-05/0.511, allocations: 40 kB / 0.5899 GB, free: 19.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002054/0.5131, allocations: 1.519 MB / 0.5913 GB, free: 18.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5131, allocations: 0 / 0.5913 GB, free: 18.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002333/0.5154, allocations: 0.6556 MB / 0.592 GB, free: 17.46 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.0003202/0.5158, allocations: 166.1 kB / 0.5921 GB, free: 17.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003344/0.5191, allocations: 2.453 MB / 0.5945 GB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5192, allocations: 0 / 0.5945 GB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.521, allocations: 1.418 MB / 0.5959 GB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/0.5244, allocations: 0.5429 MB / 0.5964 GB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.5357, allocations: 8.208 MB / 0.6045 GB, free: 4.562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/0.5376, allocations: 2.519 MB / 0.6069 GB, free: 2.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002079/0.5397, allocations: 0.5077 MB / 0.6074 GB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004702/0.5402, allocations: 151.4 kB / 0.6076 GB, free: 1.352 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5402, allocations: 0 / 0.6076 GB, free: 1.352 MB / 366.1 MB Notification: Performance of Templates: time 0.05662/0.5968, allocations: 30.88 MB / 0.6377 GB, free: 2.758 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: