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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001137, allocations: 179.3 kB / 15.15 MB, free: 1.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.04844/0.04844, allocations: 8.778 MB / 24.66 MB, free: 0.5508 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.386/1.386, allocations: 223.2 MB / 250.8 MB, free: 11.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007858/0.0007859, allocations: 90.86 kB / 304.1 MB, free: 3.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004998/0.0005001, allocations: 12 kB / 367.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1115, allocations: 52.54 MB / 419.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.3226/0.4341, allocations: 13.91 MB / 433.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.4447, allocations: 4.919 MB / 438.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003923/0.4487, allocations: 86.12 kB / 438.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003853/0.4525, allocations: 0.9273 MB / 439.6 MB, free: 34.61 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.006076/0.4587, allocations: 1.275 MB / 440.9 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002943/0.4616, allocations: 0.6571 MB / 441.6 MB, free: 33.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007501/0.4691, allocations: 4.662 MB / 446.2 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005468/0.4746, allocations: 2.449 MB / 448.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003162/0.4778, allocations: 1.465 MB / 450.1 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003704/0.4816, allocations: 1.888 MB / 452 MB, free: 28.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001364/0.4829, allocations: 239 kB / 452.3 MB, free: 28.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002877/0.4858, allocations: 432.7 kB / 452.7 MB, free: 28.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001528/0.4874, allocations: 0.8822 MB / 453.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002127/0.4895, allocations: 0.8389 MB / 454.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006651/0.4962, allocations: 6.11 MB / 460.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4962, allocations: 3.156 kB / 460.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4962, allocations: 0 / 460.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002739/0.4965, allocations: 4 kB / 460.5 MB, free: 26.61 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.01219/0.5087, allocations: 4.249 MB / 464.8 MB, free: 24.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.5088, allocations: 10.66 kB / 464.8 MB, free: 24.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002132/0.5109, allocations: 0.5541 MB / 465.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006573/0.5175, allocations: 0.9631 MB / 466.3 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009442/0.527, allocations: 2.59 MB / 468.9 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005181/0.5275, allocations: 277.6 kB / 469.2 MB, free: 22.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001759/0.5293, allocations: 369.7 kB / 469.5 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01494/0.5443, allocations: 4.757 MB / 474.3 MB, free: 20.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.33e-05/0.5444, allocations: 1.781 kB / 474.3 MB, free: 20.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003876/0.5448, allocations: 148.2 kB / 474.4 MB, free: 20.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.545, allocations: 158 kB / 474.6 MB, free: 20.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009369/0.5543, allocations: 4.038 MB / 478.6 MB, free: 18.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02928/0.5836, allocations: 15.91 MB / 494.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005872/0.5895, allocations: 6.942 MB / 0.4897 GB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.5923, allocations: 1.534 MB / 0.4912 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008216/0.6005, allocations: 4.247 MB / 0.4954 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.6006, allocations: 51.88 kB / 0.4954 GB, free: 8.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.839e-06/0.6006, allocations: 0 / 0.4954 GB, free: 8.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01354/0.6142, allocations: 6.515 MB / 0.5018 GB, free: 1.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.6143, allocations: 72.67 kB / 0.5018 GB, free: 1.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004854/0.6191, allocations: 2.215 MB / 0.504 GB, free: 15.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002493/0.6194, allocations: 49.7 kB / 0.5041 GB, free: 15.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.621, allocations: 1.708 MB / 0.5057 GB, free: 13.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006017/0.6216, allocations: 0.543 MB / 0.5063 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.6218, allocations: 40 kB / 0.5063 GB, free: 13.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.6219, allocations: 390.1 kB / 0.5067 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.6234, allocations: 0.824 MB / 0.5075 GB, free: 11.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00205/0.6254, allocations: 1.481 MB / 0.5089 GB, free: 10.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.6275, allocations: 1.091 MB / 0.51 GB, free: 9.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/0.6275, allocations: 4 kB / 0.51 GB, free: 9.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.006025/0.6336, allocations: 2.951 MB / 0.5129 GB, free: 6.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.199e-05/0.6337, allocations: 15.95 kB / 0.5129 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-05/0.6337, allocations: 20 kB / 0.5129 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009544/0.6347, allocations: 306.7 kB / 0.5132 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/0.6365, allocations: 487.2 kB / 0.5137 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004787/0.6413, allocations: 4.518 MB / 0.5181 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/0.6434, allocations: 95.92 kB / 0.5182 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002846/0.6437, allocations: 92 kB / 0.5182 GB, free: 332 kB / 382.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002557/0.6463, allocations: 1.11 MB / 0.5193 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006745/0.647, allocations: 233.2 kB / 0.5196 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004446/0.6514, allocations: 2.436 MB / 0.5219 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.998e-05/0.6515, allocations: 15.95 kB / 0.5219 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.03e-05/0.6515, allocations: 11.98 kB / 0.522 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.6515, allocations: 3.984 kB / 0.522 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.6619, allocations: 5.79 MB / 0.5276 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.662, allocations: 192 / 0.5276 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.6632, allocations: 279.6 kB / 0.5279 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008848/0.6641, allocations: 319.4 kB / 0.5282 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/0.6642, allocations: 39.98 kB / 0.5282 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006638/0.6709, allocations: 6.434 MB / 0.5345 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.848e-06/0.6709, allocations: 15.98 kB / 0.5345 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006289/0.6772, allocations: 3.516 MB / 0.538 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/0.6788, allocations: 0.4981 MB / 0.5384 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008617/0.6797, allocations: 36 kB / 0.5385 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/0.6812, allocations: 73.92 kB / 0.5385 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.6816, allocations: 125 kB / 0.5387 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.6817, allocations: 47.98 kB / 0.5387 GB, free: 10.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002953/0.6846, allocations: 1.499 MB / 0.5402 GB, free: 9.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6847, allocations: 0 / 0.5402 GB, free: 9.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003153/0.6878, allocations: 0.6562 MB / 0.5408 GB, free: 8.48 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006056/0.6939, allocations: 4.138 MB / 0.5449 GB, free: 4.242 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003986/0.6979, allocations: 2.444 MB / 0.5472 GB, free: 1.754 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.6979, allocations: 0.9375 kB / 0.5472 GB, free: 1.754 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002027/0.7, allocations: 1.419 MB / 0.5486 GB, free: 304 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/0.7036, allocations: 0.5556 MB / 0.5492 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04309/0.7467, allocations: 19.69 MB / 0.5684 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003735/0.7505, allocations: 2.519 MB / 0.5709 GB, free: 8.094 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002398/0.7529, allocations: 0.5077 MB / 0.5714 GB, free: 7.582 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002187/0.7551, allocations: 1.347 MB / 0.5727 GB, free: 6.234 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.7552, allocations: 0 / 0.5727 GB, free: 6.234 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3198/1.075, allocations: 55.69 MB / 0.6271 GB, free: 107.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/1.075, allocations: 219.5 kB / 0.6273 GB, free: 107.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.962/4.037, allocations: 0 / 0.6273 GB, free: 107.6 MB / 446.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/linux/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)