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/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) 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-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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01832/0.01832, allocations: 168.3 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.08137/0.08137, allocations: 8.803 MB / 24.67 MB, free: 4.102 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.774/2.774, allocations: 223.2 MB / 250.8 MB, free: 6.531 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 97.67 kB / 304.1 MB, free: 4 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007502/0.0007503, allocations: 8 kB / 367.2 MB, free: 4.848 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.591/0.5917, allocations: 52.55 MB / 419.8 MB, free: 48.08 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.02492/0.6168, allocations: 13.92 MB / 433.7 MB, free: 38.02 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01822/0.6351, allocations: 4.907 MB / 438.6 MB, free: 34.43 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006318/0.6415, allocations: 86 kB / 438.7 MB, free: 34.41 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006422/0.648, allocations: 0.9248 MB / 439.6 MB, free: 33.97 MB / 330.7 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.01098/0.659, allocations: 1.28 MB / 440.9 MB, free: 33.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005603/0.6647, allocations: 0.67 MB / 441.6 MB, free: 32.75 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01457/0.6793, allocations: 4.662 MB / 446.2 MB, free: 30.13 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006774/0.6861, allocations: 2.447 MB / 448.7 MB, free: 28.18 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005494/0.6917, allocations: 1.467 MB / 450.2 MB, free: 26.71 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006616/0.6984, allocations: 1.883 MB / 452 MB, free: 24.82 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002366/0.7009, allocations: 239.9 kB / 452.3 MB, free: 24.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004801/0.7057, allocations: 439.7 kB / 452.7 MB, free: 24.16 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002519/0.7083, allocations: 0.8757 MB / 453.6 MB, free: 23.28 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003189/0.7115, allocations: 0.8434 MB / 454.4 MB, free: 22.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.7226, allocations: 6.1 MB / 460.5 MB, free: 16.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.402e-05/0.7226, allocations: 0 / 460.5 MB, free: 16.31 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.761e-06/0.7227, allocations: 4 kB / 460.5 MB, free: 16.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000403/0.7231, allocations: 0 / 460.5 MB, free: 16.3 MB / 330.7 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.02015/0.7433, allocations: 4.26 MB / 464.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.061e-05/0.7434, allocations: 8.562 kB / 464.8 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00364/0.747, allocations: 0.5568 MB / 465.3 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.7572, allocations: 0.9591 MB / 466.3 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01312/0.7704, allocations: 2.591 MB / 468.9 MB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005468/0.7711, allocations: 283.4 kB / 469.2 MB, free: 7.516 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002333/0.7734, allocations: 367.9 kB / 469.5 MB, free: 7.156 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.7964, allocations: 4.757 MB / 474.3 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002015/0.7968, allocations: 0 / 474.3 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001496/0.7983, allocations: 152 kB / 474.4 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002847/0.7986, allocations: 155.4 kB / 474.6 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01752/0.8161, allocations: 4.038 MB / 478.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05483/0.8711, allocations: 15.91 MB / 494.5 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/0.8825, allocations: 6.942 MB / 0.4897 GB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004774/0.8874, allocations: 1.542 MB / 0.4912 GB, free: 4.238 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/0.9012, allocations: 4.246 MB / 0.4954 GB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.558e-05/0.9014, allocations: 51.88 kB / 0.4954 GB, free: 15.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=137): time 5.44e-06/0.9014, allocations: 0 / 0.4954 GB, free: 15.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.02373/0.9251, allocations: 6.513 MB / 0.5018 GB, free: 9.137 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.9253, allocations: 72.67 kB / 0.5019 GB, free: 9.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006344/0.9317, allocations: 2.207 MB / 0.504 GB, free: 6.816 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004326/0.9322, allocations: 57.69 kB / 0.5041 GB, free: 6.754 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002318/0.9346, allocations: 1.708 MB / 0.5057 GB, free: 5.023 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001114/0.9357, allocations: 0.5352 MB / 0.5063 GB, free: 4.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.9359, allocations: 48 kB / 0.5063 GB, free: 4.434 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003422/0.9363, allocations: 390.1 kB / 0.5067 GB, free: 4.047 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002656/0.9389, allocations: 0.824 MB / 0.5075 GB, free: 3.219 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003299/0.9423, allocations: 1.48 MB / 0.5089 GB, free: 1.441 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003227/0.9455, allocations: 1.087 MB / 0.51 GB, free: 364 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.768e-05/0.9456, allocations: 4 kB / 0.51 GB, free: 360 kB / 378.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009168/0.9548, allocations: 2.955 MB / 0.5129 GB, free: 13.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.866e-05/0.9549, allocations: 15.95 kB / 0.5129 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.027e-05/0.955, allocations: 24.38 kB / 0.5129 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001451/0.9565, allocations: 308.4 kB / 0.5132 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/0.9597, allocations: 479.2 kB / 0.5137 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008121/0.9679, allocations: 4.518 MB / 0.5181 GB, free: 7.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004131/0.9721, allocations: 95.94 kB / 0.5182 GB, free: 7.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006968/0.9729, allocations: 91.98 kB / 0.5183 GB, free: 7.57 MB / 394.7 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.00512/0.978, allocations: 1.11 MB / 0.5193 GB, free: 6.449 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/0.9794, allocations: 233.2 kB / 0.5196 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00812/0.9875, allocations: 2.436 MB / 0.5219 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.7e-05/0.9876, allocations: 19.95 kB / 0.522 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.578e-05/0.9877, allocations: 4 kB / 0.522 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-05/0.9877, allocations: 11.91 kB / 0.522 GB, free: 3.691 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02247/1.01, allocations: 5.786 MB / 0.5276 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-05/1.01, allocations: 0 / 0.5276 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/1.013, allocations: 271.8 kB / 0.5279 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001636/1.014, allocations: 326.3 kB / 0.5282 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002696/1.015, allocations: 40 kB / 0.5282 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/1.026, allocations: 6.439 MB / 0.5345 GB, free: 6.297 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/1.026, allocations: 11.92 kB / 0.5345 GB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/1.036, allocations: 3.514 MB / 0.538 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002368/1.038, allocations: 0.502 MB / 0.5385 GB, free: 2.164 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009842/1.039, allocations: 36 kB / 0.5385 GB, free: 2.129 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002526/1.042, allocations: 71.89 kB / 0.5386 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005391/1.043, allocations: 129 kB / 0.5387 GB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/1.043, allocations: 39.98 kB / 0.5387 GB, free: 1.895 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004778/1.048, allocations: 1.495 MB / 0.5402 GB, free: 392 kB / 410.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.048, allocations: 0 / 0.5402 GB, free: 392 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.007091/1.055, allocations: 0.6563 MB / 0.5408 GB, free: 15.72 MB / 426.7 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.01314/1.068, allocations: 4.144 MB / 0.5449 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007781/1.076, allocations: 2.436 MB / 0.5473 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/1.076, allocations: 384 / 0.5473 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003932/1.08, allocations: 1.423 MB / 0.5486 GB, free: 7.543 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005802/1.086, allocations: 0.5546 MB / 0.5492 GB, free: 6.988 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4862/1.572, allocations: 19.68 MB / 0.5684 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007345/1.579, allocations: 2.518 MB / 0.5709 GB, free: 116.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004934/1.584, allocations: 0.5121 MB / 0.5714 GB, free: 116.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004307/1.589, allocations: 1.349 MB / 0.5727 GB, free: 115.4 MB / 426.7 MB Notification: Performance of SimCode: time 2.144e-06/1.589, allocations: 0 / 0.5727 GB, free: 115.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.166/1.755, allocations: 55.69 MB / 0.6271 GB, free: 67.98 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000278/1.755, allocations: 211.8 kB / 0.6273 GB, free: 67.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/9.337, allocations: 2.812 kB / 0.6273 GB, free: 67.75 MB / 426.7 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/linux/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)