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.01095/0.01095, allocations: 104.4 kB / 15.74 MB, free: 5.949 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.52/1.52, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.002083/0.002083, allocations: 188.5 kB / 289.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03385/0.03385, allocations: 8.79 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002506/0.002506, allocations: 71.88 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1523, allocations: 51.57 MB / 0.503 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01832/0.1707, allocations: 15.82 MB / 0.5184 GB, free: 10.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.1824, allocations: 5.278 MB / 0.5236 GB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003752/0.1862, allocations: 91.69 kB / 0.5236 GB, free: 4.688 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005309/0.1915, allocations: 1.211 MB / 0.5248 GB, free: 3.469 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.007599/0.1992, allocations: 1.553 MB / 0.5263 GB, free: 1.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003878/0.2031, allocations: 0.9719 MB / 0.5273 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2652/0.4682, allocations: 4.684 MB / 0.5319 GB, free: 5.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004831/0.4731, allocations: 3.525 MB / 0.5353 GB, free: 5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003626/0.4768, allocations: 2.115 MB / 0.5374 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00497/0.4818, allocations: 2.44 MB / 0.5398 GB, free: 4.312 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001955/0.4837, allocations: 0.5712 MB / 0.5403 GB, free: 4.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002622/0.4864, allocations: 0.7819 MB / 0.5411 GB, free: 4.312 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001394/0.4878, allocations: 1.286 MB / 0.5423 GB, free: 4.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005311/0.4931, allocations: 2.438 MB / 0.5447 GB, free: 3.562 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.5034, allocations: 7.504 MB / 0.552 GB, free: 2.738 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.5035, allocations: 7.094 kB / 0.552 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5035, allocations: 1.969 kB / 0.552 GB, free: 2.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002557/0.5037, allocations: 0 / 0.552 GB, free: 2.734 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.02057/0.5243, allocations: 4.992 MB / 0.5569 GB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.895e-05/0.5244, allocations: 9.344 kB / 0.5569 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002957/0.5274, allocations: 0.5547 MB / 0.5575 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006429/0.5338, allocations: 0.95 MB / 0.5584 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008696/0.5426, allocations: 2.835 MB / 0.5612 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002463/0.5429, allocations: 280.4 kB / 0.5614 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008511/0.5437, allocations: 367.1 kB / 0.5618 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009924/0.5537, allocations: 4.775 MB / 0.5664 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.67e-05/0.5538, allocations: 3.75 kB / 0.5665 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003868/0.5542, allocations: 148.3 kB / 0.5666 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.5543, allocations: 166.9 kB / 0.5668 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008115/0.5625, allocations: 4.041 MB / 0.5707 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02785/0.5903, allocations: 15.56 MB / 0.5859 GB, free: 6.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005888/0.5963, allocations: 6.928 MB / 0.5927 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002311/0.5986, allocations: 1.506 MB / 0.5941 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007058/0.6057, allocations: 4.152 MB / 0.5982 GB, free: 9.453 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.6057, allocations: 46.97 kB / 0.5982 GB, free: 9.398 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.098e-06/0.6057, allocations: 3.984 kB / 0.5982 GB, free: 9.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01361/0.6194, allocations: 6.37 MB / 0.6045 GB, free: 2.895 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.6195, allocations: 68.72 kB / 0.6045 GB, free: 2.816 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004037/0.6235, allocations: 2.187 MB / 0.6067 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.6237, allocations: 57.7 kB / 0.6067 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.6249, allocations: 1.739 MB / 0.6084 GB, free: 14.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004773/0.6254, allocations: 0.5438 MB / 0.6089 GB, free: 14.29 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006433/0.626, allocations: 407.8 kB / 0.6093 GB, free: 13.88 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.6262, allocations: 305.1 kB / 0.6096 GB, free: 13.58 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.6276, allocations: 0.8242 MB / 0.6104 GB, free: 12.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/0.6296, allocations: 1.592 MB / 0.612 GB, free: 10.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003604/0.6332, allocations: 2.586 MB / 0.6145 GB, free: 7.988 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.909e-05/0.6332, allocations: 8 kB / 0.6145 GB, free: 7.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00542/0.6387, allocations: 3.035 MB / 0.6175 GB, free: 5.062 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.6387, allocations: 15.94 kB / 0.6175 GB, free: 5.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.46e-05/0.6388, allocations: 29.88 kB / 0.6175 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009101/0.6397, allocations: 299.2 kB / 0.6178 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/0.6416, allocations: 0.4996 MB / 0.6183 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00543/0.647, allocations: 4.869 MB / 0.6231 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002972/0.65, allocations: 99.78 kB / 0.6231 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/0.6503, allocations: 100 kB / 0.6232 GB, free: 14.94 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.002729/0.6531, allocations: 1.133 MB / 0.6243 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008795/0.6539, allocations: 241.1 kB / 0.6246 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004695/0.6587, allocations: 2.392 MB / 0.6269 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-05/0.6587, allocations: 19.98 kB / 0.6269 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.6587, allocations: 4 kB / 0.6269 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/0.6587, allocations: 11.97 kB / 0.6269 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/0.6703, allocations: 5.694 MB / 0.6325 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.6704, allocations: 4 kB / 0.6325 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.6717, allocations: 273.8 kB / 0.6328 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000924/0.6726, allocations: 321.9 kB / 0.6331 GB, free: 4.785 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.6728, allocations: 35.98 kB / 0.6331 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007304/0.6801, allocations: 7.009 MB / 0.64 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6802, allocations: 4.031 kB / 0.64 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006392/0.6866, allocations: 3.485 MB / 0.6434 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/0.6884, allocations: 490.2 kB / 0.6438 GB, free: 9.297 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008293/0.6892, allocations: 36 kB / 0.6439 GB, free: 9.262 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/0.691, allocations: 71.89 kB / 0.6439 GB, free: 9.191 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003199/0.6913, allocations: 116.4 kB / 0.644 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.6914, allocations: 47.98 kB / 0.6441 GB, free: 9.035 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003664/0.6951, allocations: 1.468 MB / 0.6455 GB, free: 7.551 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6951, allocations: 0 / 0.6455 GB, free: 7.551 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003592/0.6987, allocations: 0.6523 MB / 0.6462 GB, free: 6.898 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.006389/0.7051, allocations: 4.113 MB / 0.6502 GB, free: 2.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004347/0.7095, allocations: 2.46 MB / 0.6526 GB, free: 312 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.7095, allocations: 0 / 0.6526 GB, free: 312 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002187/0.7117, allocations: 1.419 MB / 0.654 GB, free: 14.88 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003748/0.7155, allocations: 0.5743 MB / 0.6545 GB, free: 14.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04905/0.7646, allocations: 23.57 MB / 0.6776 GB, free: 5.746 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003933/0.7685, allocations: 2.523 MB / 0.68 GB, free: 3.191 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002468/0.771, allocations: 0.5196 MB / 0.6805 GB, free: 2.668 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00251/0.7736, allocations: 1.347 MB / 0.6818 GB, free: 1.32 MB / 494.1 MB Notification: Performance of SimCode: time 1.703e-06/0.7736, allocations: 0 / 0.6818 GB, free: 1.32 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4028/1.176, allocations: 58.23 MB / 0.7387 GB, free: 180 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.72/14.9, allocations: 6.562 kB / 0.7387 GB, free: 180 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)