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.009538/0.009538, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.501/1.501, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001848/0.001847, allocations: 184.5 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.035/0.035, allocations: 8.798 MB / 348.6 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 75.88 kB / 463.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1217, allocations: 51.58 MB / 0.503 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01814/0.1399, allocations: 15.8 MB / 0.5184 GB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01206/0.152, allocations: 5.282 MB / 0.5235 GB, free: 4.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004351/0.1564, allocations: 95.69 kB / 0.5236 GB, free: 4.711 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004904/0.1613, allocations: 1.204 MB / 0.5248 GB, free: 3.5 MB / 366.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.006593/0.168, allocations: 1.557 MB / 0.5263 GB, free: 1.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003229/0.1713, allocations: 0.9739 MB / 0.5273 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2412/0.4125, allocations: 4.678 MB / 0.5319 GB, free: 5.234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005845/0.4184, allocations: 3.526 MB / 0.5353 GB, free: 4.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004445/0.4228, allocations: 2.117 MB / 0.5374 GB, free: 4.371 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004642/0.4275, allocations: 2.437 MB / 0.5397 GB, free: 3.941 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0017/0.4292, allocations: 0.5713 MB / 0.5403 GB, free: 3.941 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002965/0.4322, allocations: 0.7821 MB / 0.5411 GB, free: 3.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001543/0.4338, allocations: 1.286 MB / 0.5423 GB, free: 3.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005051/0.4389, allocations: 2.443 MB / 0.5447 GB, free: 3.191 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.4496, allocations: 7.503 MB / 0.552 GB, free: 2.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.337e-06/0.4497, allocations: 1.5 kB / 0.552 GB, free: 2.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4497, allocations: 0 / 0.552 GB, free: 2.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002286/0.4499, allocations: 4 kB / 0.552 GB, free: 2.406 MB / 366.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.01427/0.4642, allocations: 4.974 MB / 0.5569 GB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.4643, allocations: 9.5 kB / 0.5569 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001247/0.4655, allocations: 0.5574 MB / 0.5575 GB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005458/0.471, allocations: 0.9567 MB / 0.5584 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0068/0.4778, allocations: 2.828 MB / 0.5611 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002192/0.4781, allocations: 275.9 kB / 0.5614 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/0.4792, allocations: 368.6 kB / 0.5618 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009729/0.4889, allocations: 4.778 MB / 0.5664 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-05/0.489, allocations: 7.453 kB / 0.5664 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004077/0.4895, allocations: 151 kB / 0.5666 GB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.4896, allocations: 150 kB / 0.5667 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00753/0.4971, allocations: 4.056 MB / 0.5707 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02954/0.5267, allocations: 15.56 MB / 0.5859 GB, free: 6.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006792/0.5335, allocations: 6.923 MB / 0.5926 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002663/0.5362, allocations: 1.51 MB / 0.5941 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007951/0.5442, allocations: 4.15 MB / 0.5982 GB, free: 9.328 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.5443, allocations: 47.88 kB / 0.5982 GB, free: 9.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.318e-06/0.5443, allocations: 0 / 0.5982 GB, free: 9.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01343/0.5577, allocations: 6.379 MB / 0.6044 GB, free: 2.766 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.5578, allocations: 64.72 kB / 0.6045 GB, free: 2.691 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004207/0.562, allocations: 2.179 MB / 0.6066 GB, free: 492 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002158/0.5623, allocations: 53.7 kB / 0.6067 GB, free: 432 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.5637, allocations: 1.742 MB / 0.6084 GB, free: 14.69 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006222/0.5644, allocations: 0.5401 MB / 0.6089 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007303/0.5651, allocations: 407.8 kB / 0.6093 GB, free: 13.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.344e-05/0.5652, allocations: 305.1 kB / 0.6096 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001484/0.5667, allocations: 0.8281 MB / 0.6104 GB, free: 12.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002026/0.5688, allocations: 1.593 MB / 0.612 GB, free: 10.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003893/0.5727, allocations: 2.585 MB / 0.6145 GB, free: 7.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-05/0.5727, allocations: 8 kB / 0.6145 GB, free: 7.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005501/0.5782, allocations: 3.03 MB / 0.6174 GB, free: 4.934 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.5783, allocations: 19.97 kB / 0.6175 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-05/0.5783, allocations: 28 kB / 0.6175 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008829/0.5792, allocations: 294.3 kB / 0.6178 GB, free: 4.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/0.5812, allocations: 0.4985 MB / 0.6183 GB, free: 4.125 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005286/0.5865, allocations: 4.878 MB / 0.623 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002563/0.589, allocations: 99.89 kB / 0.6231 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003163/0.5894, allocations: 108 kB / 0.6232 GB, free: 14.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (264): * Single equations (assignments): 261 * 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.002758/0.5921, allocations: 1.129 MB / 0.6243 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006397/0.5928, allocations: 237.1 kB / 0.6245 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004726/0.5975, allocations: 2.402 MB / 0.6269 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.5976, allocations: 12 kB / 0.6269 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/0.5976, allocations: 4 kB / 0.6269 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.5976, allocations: 11.97 kB / 0.6269 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.609, allocations: 5.691 MB / 0.6325 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.609, allocations: 4 kB / 0.6325 GB, free: 5.219 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.6103, allocations: 281.7 kB / 0.6328 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008593/0.6112, allocations: 317.7 kB / 0.6331 GB, free: 4.645 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.6113, allocations: 36 kB / 0.6331 GB, free: 4.609 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006688/0.618, allocations: 7.024 MB / 0.6399 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.6181, allocations: 4.031 kB / 0.64 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005751/0.6238, allocations: 3.481 MB / 0.6434 GB, free: 9.652 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/0.6252, allocations: 494.2 kB / 0.6438 GB, free: 9.148 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008802/0.6261, allocations: 32 kB / 0.6439 GB, free: 9.117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/0.6279, allocations: 67.89 kB / 0.6439 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.6282, allocations: 120.7 kB / 0.644 GB, free: 8.938 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.6283, allocations: 47.98 kB / 0.6441 GB, free: 8.891 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00304/0.6314, allocations: 1.472 MB / 0.6455 GB, free: 7.402 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6314, allocations: 0 / 0.6455 GB, free: 7.402 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003386/0.6348, allocations: 0.6484 MB / 0.6462 GB, free: 6.754 MB / 462.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.006216/0.641, allocations: 4.109 MB / 0.6502 GB, free: 2.586 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004595/0.6457, allocations: 2.464 MB / 0.6526 GB, free: 160 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.6457, allocations: 0 / 0.6526 GB, free: 160 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.648, allocations: 1.415 MB / 0.654 GB, free: 14.73 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004418/0.6525, allocations: 0.574 MB / 0.6545 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04896/0.7015, allocations: 23.57 MB / 0.6775 GB, free: 5.609 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004628/0.7061, allocations: 2.519 MB / 0.68 GB, free: 3.059 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002585/0.7088, allocations: 0.5196 MB / 0.6805 GB, free: 2.535 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002765/0.7116, allocations: 1.351 MB / 0.6818 GB, free: 1.184 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7116, allocations: 0 / 0.6818 GB, free: 1.184 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3414/1.053, allocations: 58.24 MB / 0.7387 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.72, allocations: 7.031 kB / 0.7387 GB, free: 179.7 MB / 0.5294 GB (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)