Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.0007871/0.0007872, 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.308/1.308, allocations: 223.3 MB / 239.4 MB, free: 5.52 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.001063/0.001063, allocations: 183.3 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03439/0.03439, allocations: 8.808 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 10.53 kB / 413.9 MB, free: 42.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08447/0.08484, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01557/0.1004, allocations: 14.91 MB / 481.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.1108, allocations: 5.146 MB / 486.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002843/0.1137, allocations: 87.69 kB / 486.6 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003366/0.117, allocations: 1.061 MB / 487.7 MB, free: 7.75 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.00535/0.1224, allocations: 1.415 MB / 489.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002958/0.1254, allocations: 0.8888 MB / 490 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007965/0.1334, allocations: 4.988 MB / 495 MB, free: 448 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005563/0.139, allocations: 2.898 MB / 497.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002755/0.1418, allocations: 1.49 MB / 499.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003706/0.1455, allocations: 1.975 MB / 0.4896 GB, free: 9.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001117/0.1467, allocations: 236 kB / 0.4898 GB, free: 9.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.149, allocations: 459.7 kB / 0.4903 GB, free: 9.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.1506, allocations: 0.8987 MB / 0.4911 GB, free: 8.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003995/0.1546, allocations: 2.023 MB / 0.4931 GB, free: 6.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008319/0.1629, allocations: 7.023 MB / 0.5 GB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.163, allocations: 0 / 0.5 GB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.163, allocations: 0 / 0.5 GB, free: 15.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002472/0.1632, allocations: 4 kB / 0.5 GB, free: 15.32 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.01198/0.1752, allocations: 4.203 MB / 0.5041 GB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.1753, allocations: 12.03 kB / 0.5041 GB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001666/0.177, allocations: 0.557 MB / 0.5046 GB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005785/0.1828, allocations: 0.9639 MB / 0.5056 GB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006022/0.1888, allocations: 2.661 MB / 0.5082 GB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003446/0.1892, allocations: 271.8 kB / 0.5084 GB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009769/0.1902, allocations: 375.7 kB / 0.5088 GB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.2011, allocations: 4.78 MB / 0.5135 GB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.2012, allocations: 11.91 kB / 0.5135 GB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000653/0.2019, allocations: 148 kB / 0.5136 GB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/0.2021, allocations: 159.3 kB / 0.5138 GB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008231/0.2103, allocations: 4.066 MB / 0.5177 GB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2338/0.4442, allocations: 15.9 MB / 0.5333 GB, free: 56.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005137/0.4493, allocations: 6.948 MB / 0.54 GB, free: 51.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002492/0.4519, allocations: 1.535 MB / 0.5415 GB, free: 51.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007321/0.4592, allocations: 4.247 MB / 0.5457 GB, free: 50.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.4593, allocations: 50.06 kB / 0.5457 GB, free: 50.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.126e-06/0.4593, allocations: 0 / 0.5457 GB, free: 50.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01192/0.4712, allocations: 6.511 MB / 0.5521 GB, free: 48.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.4713, allocations: 68.03 kB / 0.5522 GB, free: 48.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003165/0.4744, allocations: 2.235 MB / 0.5543 GB, free: 48.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.4746, allocations: 52.64 kB / 0.5544 GB, free: 48.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.4756, allocations: 1.7 MB / 0.5561 GB, free: 47.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003515/0.476, allocations: 0.5547 MB / 0.5566 GB, free: 46.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.4762, allocations: 173 kB / 0.5568 GB, free: 46.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.978e-05/0.4763, allocations: 313 kB / 0.5571 GB, free: 46.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.4773, allocations: 0.8269 MB / 0.5579 GB, free: 45.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.4787, allocations: 1.489 MB / 0.5593 GB, free: 44.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002532/0.4812, allocations: 2.47 MB / 0.5617 GB, free: 43.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.317e-06/0.4812, allocations: 3.938 kB / 0.5617 GB, free: 43.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004266/0.4855, allocations: 2.97 MB / 0.5646 GB, free: 41.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.4855, allocations: 19.17 kB / 0.5647 GB, free: 41.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/0.4856, allocations: 22.59 kB / 0.5647 GB, free: 41.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007468/0.4863, allocations: 296.9 kB / 0.565 GB, free: 41.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.4879, allocations: 489.2 kB / 0.5654 GB, free: 41.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003561/0.4915, allocations: 4.519 MB / 0.5698 GB, free: 37.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.4931, allocations: 87.41 kB / 0.5699 GB, free: 37.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.4932, allocations: 96.58 kB / 0.57 GB, free: 37.2 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.001635/0.4949, allocations: 1.121 MB / 0.5711 GB, free: 36.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.4952, allocations: 232.8 kB / 0.5713 GB, free: 36.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/0.4985, allocations: 2.443 MB / 0.5737 GB, free: 34.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.4986, allocations: 15.25 kB / 0.5737 GB, free: 34.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.4986, allocations: 7.438 kB / 0.5737 GB, free: 34.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4986, allocations: 11.91 kB / 0.5738 GB, free: 34.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00688/0.5055, allocations: 5.797 MB / 0.5794 GB, free: 30.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.5055, allocations: 0 / 0.5794 GB, free: 30.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.5066, allocations: 279.8 kB / 0.5797 GB, free: 30.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007355/0.5073, allocations: 329.6 kB / 0.58 GB, free: 30.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.074e-05/0.5074, allocations: 31.98 kB / 0.58 GB, free: 30.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004514/0.512, allocations: 6.45 MB / 0.5863 GB, free: 23.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.512, allocations: 6.234 kB / 0.5863 GB, free: 23.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004248/0.5162, allocations: 3.546 MB / 0.5898 GB, free: 19.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008809/0.5171, allocations: 0.4943 MB / 0.5903 GB, free: 19.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002716/0.5174, allocations: 36 kB / 0.5903 GB, free: 18.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.5185, allocations: 71.95 kB / 0.5904 GB, free: 18.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/0.5187, allocations: 117.1 kB / 0.5905 GB, free: 18.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.597e-05/0.5188, allocations: 40 kB / 0.5905 GB, free: 18.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001779/0.5206, allocations: 1.527 MB / 0.592 GB, free: 17.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5206, allocations: 3.5 kB / 0.592 GB, free: 17.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001964/0.5225, allocations: 0.6523 MB / 0.5927 GB, free: 16.57 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.004354/0.5269, allocations: 4.161 MB / 0.5967 GB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003101/0.53, allocations: 2.454 MB / 0.5991 GB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.53, allocations: 0 / 0.5991 GB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.5317, allocations: 1.422 MB / 0.6005 GB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/0.5347, allocations: 0.5524 MB / 0.6011 GB, free: 7.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04761/0.5823, allocations: 29.03 MB / 0.6294 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/0.585, allocations: 2.515 MB / 0.6319 GB, free: 5.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001965/0.587, allocations: 0.5116 MB / 0.6324 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/0.5888, allocations: 1.347 MB / 0.6337 GB, free: 3.785 MB / 398.1 MB Notification: Performance of SimCode: time 1.753e-06/0.5888, allocations: 0 / 0.6337 GB, free: 3.785 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09226/0.681, allocations: 56.88 MB / 0.6892 GB, free: 11.34 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.6813, allocations: 223.8 kB / 0.6894 GB, free: 11.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.986/3.668, allocations: 0 / 0.6894 GB, free: 11.09 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)