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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 90.52 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.356/1.356, allocations: 223.3 MB / 239.4 MB, free: 5.492 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.001161/0.001161, allocations: 176.5 kB / 290.6 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03317/0.03317, allocations: 8.801 MB / 350.5 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000391/0.000391, allocations: 14.08 kB / 413.9 MB, free: 42.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.08907, allocations: 52.56 MB / 466.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01459/0.1037, allocations: 14.92 MB / 481.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009402/0.1131, allocations: 5.146 MB / 486.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002605/0.1158, allocations: 91.69 kB / 486.6 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003525/0.1193, allocations: 1.061 MB / 487.7 MB, free: 7.703 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.004828/0.1241, allocations: 1.409 MB / 489.1 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002909/0.1271, allocations: 0.8812 MB / 490 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007519/0.1346, allocations: 4.989 MB / 495 MB, free: 408 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004889/0.1395, allocations: 2.894 MB / 497.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002415/0.142, allocations: 1.493 MB / 499.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002983/0.145, allocations: 1.975 MB / 0.4896 GB, free: 9.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007944/0.1458, allocations: 243.9 kB / 0.4898 GB, free: 9.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001635/0.1474, allocations: 455.7 kB / 0.4903 GB, free: 9.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.1485, allocations: 0.8871 MB / 0.4911 GB, free: 8.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002737/0.1513, allocations: 2.03 MB / 0.4931 GB, free: 6.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006636/0.1579, allocations: 7.015 MB / 0.5 GB, free: 15.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1579, allocations: 0 / 0.5 GB, free: 15.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.158, allocations: 0 / 0.5 GB, free: 15.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001444/0.1581, allocations: 4 kB / 0.5 GB, free: 15.28 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.009793/0.1679, allocations: 4.218 MB / 0.5041 GB, free: 11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.168, allocations: 8.031 kB / 0.5041 GB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000914/0.1689, allocations: 0.5492 MB / 0.5046 GB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004874/0.1738, allocations: 0.9717 MB / 0.5056 GB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/0.1784, allocations: 2.653 MB / 0.5082 GB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002056/0.1787, allocations: 279.8 kB / 0.5084 GB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005498/0.1792, allocations: 371.8 kB / 0.5088 GB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00811/0.1873, allocations: 4.784 MB / 0.5135 GB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.82e-05/0.1874, allocations: 15.89 kB / 0.5135 GB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003362/0.1878, allocations: 148 kB / 0.5136 GB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001449/0.1879, allocations: 159.3 kB / 0.5138 GB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006739/0.1947, allocations: 4.066 MB / 0.5177 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.214/0.4087, allocations: 15.9 MB / 0.5333 GB, free: 56.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004981/0.4137, allocations: 6.946 MB / 0.54 GB, free: 51.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.4161, allocations: 1.535 MB / 0.5415 GB, free: 51.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006754/0.4229, allocations: 4.253 MB / 0.5457 GB, free: 50.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.4229, allocations: 46.22 kB / 0.5457 GB, free: 50.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 2.785e-06/0.4229, allocations: 1.375 kB / 0.5457 GB, free: 50.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01175/0.4347, allocations: 6.513 MB / 0.5521 GB, free: 48.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.4348, allocations: 70.25 kB / 0.5522 GB, free: 48.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003129/0.4379, allocations: 2.23 MB / 0.5543 GB, free: 48.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.438, allocations: 51.58 kB / 0.5544 GB, free: 48.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.4391, allocations: 1.71 MB / 0.5561 GB, free: 46.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003163/0.4394, allocations: 0.5496 MB / 0.5566 GB, free: 46.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.4396, allocations: 174.9 kB / 0.5568 GB, free: 46.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.778e-05/0.4396, allocations: 305.1 kB / 0.5571 GB, free: 46.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.4407, allocations: 0.8341 MB / 0.5579 GB, free: 45.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.4421, allocations: 1.482 MB / 0.5593 GB, free: 44.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002738/0.4448, allocations: 2.468 MB / 0.5617 GB, free: 42.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/0.4449, allocations: 10.19 kB / 0.5617 GB, free: 42.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004666/0.4496, allocations: 2.968 MB / 0.5646 GB, free: 41.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.4496, allocations: 18.97 kB / 0.5647 GB, free: 41.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-05/0.4496, allocations: 25.91 kB / 0.5647 GB, free: 41.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007863/0.4504, allocations: 298.4 kB / 0.565 GB, free: 41.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.452, allocations: 489.6 kB / 0.5654 GB, free: 41.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00363/0.4557, allocations: 4.516 MB / 0.5698 GB, free: 37.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002063/0.4577, allocations: 88.66 kB / 0.5699 GB, free: 37.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.4579, allocations: 93.98 kB / 0.57 GB, free: 37.14 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.002032/0.46, allocations: 1.122 MB / 0.5711 GB, free: 36.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004874/0.4604, allocations: 235.1 kB / 0.5713 GB, free: 36.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003701/0.4642, allocations: 2.447 MB / 0.5737 GB, free: 34.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.4642, allocations: 11.78 kB / 0.5737 GB, free: 34.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4642, allocations: 9.531 kB / 0.5737 GB, free: 34.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.4642, allocations: 11.91 kB / 0.5738 GB, free: 34.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007791/0.472, allocations: 5.801 MB / 0.5794 GB, free: 30.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.4721, allocations: 3.938 kB / 0.5794 GB, free: 30.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.4731, allocations: 275.8 kB / 0.5797 GB, free: 30.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007719/0.4739, allocations: 328.3 kB / 0.58 GB, free: 29.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.418e-05/0.474, allocations: 35.98 kB / 0.58 GB, free: 29.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004617/0.4786, allocations: 6.448 MB / 0.5863 GB, free: 23.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4787, allocations: 2.688 kB / 0.5863 GB, free: 23.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004584/0.4833, allocations: 3.55 MB / 0.5898 GB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.4843, allocations: 0.4943 MB / 0.5903 GB, free: 18.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002766/0.4846, allocations: 32 kB / 0.5903 GB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.4857, allocations: 71.95 kB / 0.5904 GB, free: 18.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.4859, allocations: 117.1 kB / 0.5905 GB, free: 18.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.866e-05/0.486, allocations: 47.98 kB / 0.5905 GB, free: 18.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001835/0.4878, allocations: 1.519 MB / 0.592 GB, free: 17.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4878, allocations: 0 / 0.592 GB, free: 17.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001979/0.4898, allocations: 0.6523 MB / 0.5927 GB, free: 16.54 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.004464/0.4943, allocations: 4.166 MB / 0.5967 GB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.4976, allocations: 2.451 MB / 0.5991 GB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.4976, allocations: 0 / 0.5991 GB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.4993, allocations: 1.421 MB / 0.6005 GB, free: 8.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002793/0.5021, allocations: 0.5471 MB / 0.601 GB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04481/0.5469, allocations: 29.05 MB / 0.6294 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002241/0.5492, allocations: 2.515 MB / 0.6319 GB, free: 5.605 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001901/0.5511, allocations: 0.5116 MB / 0.6324 GB, free: 5.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/0.5527, allocations: 1.347 MB / 0.6337 GB, free: 3.742 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5527, allocations: 0 / 0.6337 GB, free: 3.742 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0932/0.6459, allocations: 56.86 MB / 0.6892 GB, free: 11.31 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.6461, allocations: 235.8 kB / 0.6894 GB, free: 11.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.967/3.613, allocations: 3.938 kB / 0.6894 GB, free: 11.04 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)