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.01092/0.01092, allocations: 99.64 kB / 15.73 MB, free: 5.547 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.546/1.546, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001449/0.001449, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03604/0.03604, allocations: 8.801 MB / 348.7 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 83.88 kB / 463.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1093, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01876/0.1281, allocations: 15.81 MB / 0.5184 GB, free: 10.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01157/0.1398, allocations: 5.282 MB / 0.5235 GB, free: 4.816 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003212/0.143, allocations: 91.69 kB / 0.5236 GB, free: 4.727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004059/0.1471, allocations: 1.215 MB / 0.5248 GB, free: 3.504 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.005073/0.1522, allocations: 1.553 MB / 0.5263 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002855/0.1551, allocations: 0.9778 MB / 0.5273 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2488/0.4039, allocations: 4.677 MB / 0.5319 GB, free: 5.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004264/0.4082, allocations: 3.527 MB / 0.5353 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003644/0.4118, allocations: 2.104 MB / 0.5374 GB, free: 4.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004172/0.416, allocations: 2.438 MB / 0.5397 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.4174, allocations: 0.5707 MB / 0.5403 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002226/0.4196, allocations: 0.7787 MB / 0.5411 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001192/0.4208, allocations: 1.295 MB / 0.5423 GB, free: 4.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004017/0.4249, allocations: 2.441 MB / 0.5447 GB, free: 3.629 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008826/0.4337, allocations: 7.501 MB / 0.552 GB, free: 2.801 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.231e-05/0.4338, allocations: 5.156 kB / 0.552 GB, free: 2.801 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4338, allocations: 0 / 0.552 GB, free: 2.801 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002596/0.434, allocations: 0 / 0.552 GB, free: 2.801 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.0196/0.4536, allocations: 4.98 MB / 0.5569 GB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.252e-05/0.4537, allocations: 14.22 kB / 0.5569 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001694/0.4554, allocations: 0.5574 MB / 0.5575 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006413/0.4619, allocations: 0.9539 MB / 0.5584 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008632/0.4705, allocations: 2.827 MB / 0.5611 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002966/0.4709, allocations: 277.7 kB / 0.5614 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001737/0.4726, allocations: 368.6 kB / 0.5618 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/0.4864, allocations: 4.781 MB / 0.5664 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001226/0.4866, allocations: 3.031 kB / 0.5664 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008177/0.4874, allocations: 150.2 kB / 0.5666 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.4876, allocations: 154.9 kB / 0.5667 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008559/0.4961, allocations: 4.048 MB / 0.5707 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03083/0.527, allocations: 15.56 MB / 0.5859 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006791/0.5338, allocations: 6.928 MB / 0.5926 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002793/0.5367, allocations: 1.503 MB / 0.5941 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008515/0.5452, allocations: 4.151 MB / 0.5982 GB, free: 9.539 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.5453, allocations: 51.88 kB / 0.5982 GB, free: 9.477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.208e-06/0.5453, allocations: 0 / 0.5982 GB, free: 9.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01413/0.5595, allocations: 6.36 MB / 0.6044 GB, free: 2.988 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.5596, allocations: 80.64 kB / 0.6045 GB, free: 2.898 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004717/0.5643, allocations: 2.183 MB / 0.6066 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002699/0.5646, allocations: 53.7 kB / 0.6067 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001786/0.5664, allocations: 1.736 MB / 0.6084 GB, free: 14.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007284/0.5671, allocations: 0.5381 MB / 0.6089 GB, free: 14.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009054/0.5681, allocations: 407.8 kB / 0.6093 GB, free: 13.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.5682, allocations: 309.1 kB / 0.6096 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.5698, allocations: 0.8281 MB / 0.6104 GB, free: 12.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001983/0.5718, allocations: 1.584 MB / 0.6119 GB, free: 10.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003611/0.5754, allocations: 2.592 MB / 0.6145 GB, free: 8.047 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.747e-05/0.5754, allocations: 8 kB / 0.6145 GB, free: 8.039 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005583/0.581, allocations: 3.031 MB / 0.6174 GB, free: 5.125 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/0.5811, allocations: 15.94 kB / 0.6175 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.31e-05/0.5811, allocations: 28 kB / 0.6175 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009592/0.5821, allocations: 303.3 kB / 0.6178 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/0.584, allocations: 0.4956 MB / 0.6183 GB, free: 4.316 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00515/0.5892, allocations: 4.87 MB / 0.623 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002796/0.592, allocations: 103.9 kB / 0.6231 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004191/0.5924, allocations: 104 kB / 0.6232 GB, free: 15 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.003062/0.5955, allocations: 1.13 MB / 0.6243 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009166/0.5964, allocations: 237.1 kB / 0.6245 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005753/0.6022, allocations: 2.402 MB / 0.6269 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.6022, allocations: 12 kB / 0.6269 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.6023, allocations: 8 kB / 0.6269 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.6023, allocations: 11.97 kB / 0.6269 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/0.615, allocations: 5.695 MB / 0.6325 GB, free: 5.414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.615, allocations: 4 kB / 0.6325 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.6162, allocations: 277.9 kB / 0.6327 GB, free: 5.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008492/0.6171, allocations: 310.2 kB / 0.633 GB, free: 4.844 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.6172, allocations: 39.98 kB / 0.6331 GB, free: 4.805 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006778/0.624, allocations: 7.018 MB / 0.6399 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.624, allocations: 4.031 kB / 0.6399 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006592/0.6306, allocations: 3.482 MB / 0.6433 GB, free: 9.852 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001562/0.6322, allocations: 494.2 kB / 0.6438 GB, free: 9.348 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007822/0.633, allocations: 36 kB / 0.6438 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/0.6347, allocations: 71.89 kB / 0.6439 GB, free: 9.242 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.635, allocations: 108.6 kB / 0.644 GB, free: 9.141 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.6352, allocations: 47.98 kB / 0.6441 GB, free: 9.094 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003279/0.6385, allocations: 1.476 MB / 0.6455 GB, free: 7.602 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6385, allocations: 4 kB / 0.6455 GB, free: 7.598 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003611/0.6421, allocations: 0.6484 MB / 0.6461 GB, free: 6.949 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.007137/0.6492, allocations: 4.114 MB / 0.6502 GB, free: 2.777 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004823/0.6541, allocations: 2.455 MB / 0.6526 GB, free: 364 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.6541, allocations: 0 / 0.6526 GB, free: 364 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002376/0.6565, allocations: 1.417 MB / 0.6539 GB, free: 14.93 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003928/0.6605, allocations: 0.5741 MB / 0.6545 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04636/0.7068, allocations: 23.57 MB / 0.6775 GB, free: 5.777 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00419/0.7111, allocations: 2.523 MB / 0.68 GB, free: 3.223 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0028/0.7139, allocations: 0.5196 MB / 0.6805 GB, free: 2.699 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002473/0.7164, allocations: 1.351 MB / 0.6818 GB, free: 1.348 MB / 494.1 MB Notification: Performance of SimCode: time 1.884e-06/0.7164, allocations: 0 / 0.6818 GB, free: 1.348 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3363/1.053, allocations: 56.36 MB / 0.7368 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/15.49, allocations: 6.75 kB / 0.7369 GB, free: 178.6 MB / 0.5294 GB (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)