Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.0009056/0.0009057, allocations: 90.44 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.34/1.34, allocations: 223.3 MB / 239.4 MB, free: 5.516 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.001122/0.001122, allocations: 172.6 kB / 290.6 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03324/0.03324, allocations: 8.806 MB / 350.5 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003636, allocations: 12.06 kB / 413.9 MB, free: 42.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08311/0.08349, allocations: 52.56 MB / 466.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01526/0.09878, allocations: 14.89 MB / 481.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009922/0.1087, allocations: 5.154 MB / 486.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002344/0.1111, allocations: 83.69 kB / 486.6 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002924/0.1141, allocations: 1.065 MB / 487.7 MB, free: 7.77 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.004265/0.1183, allocations: 1.411 MB / 489.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002104/0.1205, allocations: 0.8828 MB / 490 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005963/0.1264, allocations: 4.985 MB / 495 MB, free: 476 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003653/0.1301, allocations: 2.91 MB / 497.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002058/0.1322, allocations: 1.486 MB / 499.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002667/0.1349, allocations: 1.972 MB / 0.4896 GB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005811/0.1355, allocations: 240 kB / 0.4898 GB, free: 9.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001208/0.1367, allocations: 455.7 kB / 0.4902 GB, free: 9.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007509/0.1374, allocations: 0.8988 MB / 0.4911 GB, free: 8.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001978/0.1394, allocations: 2.023 MB / 0.4931 GB, free: 6.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006208/0.1456, allocations: 7.019 MB / 0.4999 GB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1457, allocations: 0 / 0.4999 GB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1457, allocations: 3.938 kB / 0.4999 GB, free: 15.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001656/0.1458, allocations: 0 / 0.4999 GB, free: 15.34 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.0113/0.1572, allocations: 4.214 MB / 0.5041 GB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.1572, allocations: 8.031 kB / 0.5041 GB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001687/0.1589, allocations: 0.557 MB / 0.5046 GB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005685/0.1646, allocations: 0.96 MB / 0.5056 GB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005973/0.1706, allocations: 2.653 MB / 0.5081 GB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.1708, allocations: 283.8 kB / 0.5084 GB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006626/0.1715, allocations: 367.8 kB / 0.5088 GB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008493/0.18, allocations: 4.788 MB / 0.5134 GB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.577e-05/0.1801, allocations: 7.844 kB / 0.5134 GB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003324/0.1805, allocations: 155.9 kB / 0.5136 GB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/0.1806, allocations: 155.4 kB / 0.5137 GB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00661/0.1872, allocations: 4.073 MB / 0.5177 GB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1838/0.3711, allocations: 15.89 MB / 0.5332 GB, free: 56.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004861/0.376, allocations: 6.948 MB / 0.54 GB, free: 51.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002402/0.3784, allocations: 1.536 MB / 0.5415 GB, free: 51.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007511/0.3859, allocations: 4.25 MB / 0.5457 GB, free: 50.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.544e-05/0.3861, allocations: 52.67 kB / 0.5457 GB, free: 50.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 5.2e-06/0.3861, allocations: 1.5 kB / 0.5457 GB, free: 50.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01288/0.3989, allocations: 6.514 MB / 0.5521 GB, free: 48.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.399, allocations: 68.56 kB / 0.5522 GB, free: 48.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003316/0.4024, allocations: 2.237 MB / 0.5543 GB, free: 48.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.4025, allocations: 51.73 kB / 0.5544 GB, free: 48.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.4037, allocations: 1.701 MB / 0.556 GB, free: 47.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003733/0.404, allocations: 0.5505 MB / 0.5566 GB, free: 46.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.4043, allocations: 173.8 kB / 0.5567 GB, free: 46.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.728e-05/0.4043, allocations: 313 kB / 0.557 GB, free: 46.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.4054, allocations: 0.8252 MB / 0.5579 GB, free: 46.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.4068, allocations: 1.493 MB / 0.5593 GB, free: 44.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002794/0.4096, allocations: 2.464 MB / 0.5617 GB, free: 43.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.4097, allocations: 5.719 kB / 0.5617 GB, free: 43.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004571/0.4142, allocations: 2.969 MB / 0.5646 GB, free: 41.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.4143, allocations: 18.94 kB / 0.5646 GB, free: 41.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.4143, allocations: 18.97 kB / 0.5647 GB, free: 41.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007428/0.4151, allocations: 302 kB / 0.5649 GB, free: 41.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.4166, allocations: 489.7 kB / 0.5654 GB, free: 41.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003576/0.4202, allocations: 4.51 MB / 0.5698 GB, free: 37.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/0.4221, allocations: 90.64 kB / 0.5699 GB, free: 37.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/0.4222, allocations: 89.78 kB / 0.57 GB, free: 37.32 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.001676/0.4239, allocations: 1.132 MB / 0.5711 GB, free: 36.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004044/0.4243, allocations: 236.6 kB / 0.5713 GB, free: 36.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003482/0.4278, allocations: 2.441 MB / 0.5737 GB, free: 34.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.4278, allocations: 15.84 kB / 0.5737 GB, free: 34.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4279, allocations: 4.969 kB / 0.5737 GB, free: 34.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.4279, allocations: 15.09 kB / 0.5737 GB, free: 34.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007094/0.435, allocations: 5.793 MB / 0.5794 GB, free: 30.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.435, allocations: 4 kB / 0.5794 GB, free: 30.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.4361, allocations: 279.8 kB / 0.5797 GB, free: 30.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007617/0.4369, allocations: 332.4 kB / 0.58 GB, free: 30.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.384e-05/0.437, allocations: 35.98 kB / 0.58 GB, free: 30.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004585/0.4415, allocations: 6.444 MB / 0.5863 GB, free: 23.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4416, allocations: 4.031 kB / 0.5863 GB, free: 23.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004616/0.4462, allocations: 3.548 MB / 0.5898 GB, free: 19.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009985/0.4472, allocations: 0.4904 MB / 0.5903 GB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000544/0.4478, allocations: 32 kB / 0.5903 GB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.449, allocations: 75.95 kB / 0.5904 GB, free: 18.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/0.4492, allocations: 124.7 kB / 0.5905 GB, free: 18.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.882e-05/0.4493, allocations: 39.98 kB / 0.5905 GB, free: 18.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001841/0.4512, allocations: 1.519 MB / 0.592 GB, free: 17.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4512, allocations: 5.875 kB / 0.592 GB, free: 17.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002042/0.4532, allocations: 0.6601 MB / 0.5927 GB, free: 16.58 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.004566/0.4578, allocations: 4.158 MB / 0.5967 GB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003269/0.4611, allocations: 2.455 MB / 0.5991 GB, free: 9.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4611, allocations: 0 / 0.5991 GB, free: 9.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.4627, allocations: 1.417 MB / 0.6005 GB, free: 8.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00298/0.4657, allocations: 0.5478 MB / 0.601 GB, free: 7.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04516/0.5109, allocations: 29.05 MB / 0.6294 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/0.5131, allocations: 2.511 MB / 0.6318 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00181/0.5149, allocations: 0.5116 MB / 0.6323 GB, free: 5.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00162/0.5166, allocations: 1.351 MB / 0.6337 GB, free: 3.789 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5166, allocations: 0 / 0.6337 GB, free: 3.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08685/0.6034, allocations: 56.86 MB / 0.6892 GB, free: 11.36 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.6037, allocations: 227.9 kB / 0.6894 GB, free: 11.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.061/3.665, allocations: 4 kB / 0.6894 GB, free: 11.1 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)