Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",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.005438/0.005438, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.401/1.401, allocations: 222.9 MB / 239.4 MB, free: 4.5 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.001652/0.001652, allocations: 192.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03634/0.03634, allocations: 8.792 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002411/0.002411, allocations: 83.88 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1023, allocations: 51.56 MB / 0.5029 GB, free: 9.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01628/0.1186, allocations: 13.4 MB / 0.516 GB, free: 12.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00886/0.1275, allocations: 4.43 MB / 0.5203 GB, free: 8.047 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002105/0.1297, allocations: 83.69 kB / 0.5204 GB, free: 7.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003161/0.1329, allocations: 1.025 MB / 0.5214 GB, free: 6.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004138/0.1371, allocations: 1.289 MB / 0.5227 GB, free: 5.637 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.00224/0.1393, allocations: 0.8687 MB / 0.5235 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00498/0.1443, allocations: 3.802 MB / 0.5272 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.204/0.3483, allocations: 3.344 MB / 0.5305 GB, free: 5.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.351, allocations: 1.771 MB / 0.5322 GB, free: 5.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00303/0.354, allocations: 2.005 MB / 0.5342 GB, free: 4.676 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001177/0.3552, allocations: 496.2 kB / 0.5347 GB, free: 4.676 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.3572, allocations: 0.6902 MB / 0.5353 GB, free: 4.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.3583, allocations: 1.073 MB / 0.5364 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002826/0.3611, allocations: 2.041 MB / 0.5384 GB, free: 4.047 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00842/0.3695, allocations: 6.427 MB / 0.5447 GB, free: 3.344 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3696, allocations: 0.5 kB / 0.5447 GB, free: 3.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3696, allocations: 0 / 0.5447 GB, free: 3.344 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001792/0.3698, allocations: 3.344 kB / 0.5447 GB, free: 3.344 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01294/0.3827, allocations: 4.268 MB / 0.5488 GB, free: 1.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3828, allocations: 14 kB / 0.5488 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00114/0.3839, allocations: 492.9 kB / 0.5493 GB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00409/0.388, allocations: 0.767 MB / 0.5501 GB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004503/0.3926, allocations: 2.324 MB / 0.5523 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00019/0.3928, allocations: 237.5 kB / 0.5526 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007949/0.3936, allocations: 322.8 kB / 0.5529 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0085/0.4021, allocations: 4.173 MB / 0.5569 GB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.36e-05/0.4022, allocations: 10.27 kB / 0.557 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003841/0.4026, allocations: 127 kB / 0.5571 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/0.4028, allocations: 141.2 kB / 0.5572 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00691/0.4097, allocations: 3.498 MB / 0.5606 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02266/0.4324, allocations: 13.08 MB / 0.5734 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006179/0.4386, allocations: 5.501 MB / 0.5788 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001954/0.4406, allocations: 1.062 MB / 0.5798 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00563/0.4462, allocations: 3.04 MB / 0.5828 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/0.4463, allocations: 51.5 kB / 0.5828 GB, free: 9.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 2.806e-06/0.4463, allocations: 0 / 0.5828 GB, free: 9.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.009865/0.4562, allocations: 4.664 MB / 0.5874 GB, free: 4.262 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.4563, allocations: 60.41 kB / 0.5874 GB, free: 4.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002599/0.4589, allocations: 1.602 MB / 0.589 GB, free: 2.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.459, allocations: 45.7 kB / 0.589 GB, free: 2.531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0012/0.4602, allocations: 1.46 MB / 0.5905 GB, free: 1.059 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003784/0.4606, allocations: 409.5 kB / 0.5909 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004614/0.4611, allocations: 279.4 kB / 0.5911 GB, free: 392 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4612, allocations: 305.1 kB / 0.5914 GB, free: 84 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.4623, allocations: 0.5696 MB / 0.592 GB, free: 15.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.4638, allocations: 1.058 MB / 0.593 GB, free: 14.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0026/0.4664, allocations: 1.723 MB / 0.5947 GB, free: 12.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.4664, allocations: 4 kB / 0.5947 GB, free: 12.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003662/0.4701, allocations: 2.049 MB / 0.5967 GB, free: 10.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.552e-05/0.4701, allocations: 13.56 kB / 0.5967 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.487e-05/0.4702, allocations: 16 kB / 0.5967 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004048/0.4706, allocations: 130.1 kB / 0.5969 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/0.472, allocations: 373.4 kB / 0.5972 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/0.4752, allocations: 3.378 MB / 0.6005 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.4766, allocations: 71.92 kB / 0.6006 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.4768, allocations: 72.11 kB / 0.6006 GB, free: 6.105 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * 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 {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001959/0.4788, allocations: 0.9611 MB / 0.6016 GB, free: 5.156 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003724/0.4791, allocations: 178.8 kB / 0.6018 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.4826, allocations: 1.809 MB / 0.6035 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/0.4827, allocations: 12 kB / 0.6035 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.4827, allocations: 7.938 kB / 0.6035 GB, free: 3.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.4827, allocations: 3.984 kB / 0.6035 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007768/0.4905, allocations: 4.36 MB / 0.6078 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.4905, allocations: 3.844 kB / 0.6078 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008565/0.4914, allocations: 179.8 kB / 0.608 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009014/0.4923, allocations: 305.4 kB / 0.6083 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-05/0.4924, allocations: 35.98 kB / 0.6083 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008489/0.5009, allocations: 8.191 MB / 0.6163 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.5009, allocations: 6.75 kB / 0.6163 GB, free: 5.457 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004653/0.5056, allocations: 2.573 MB / 0.6188 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000978/0.5066, allocations: 371.9 kB / 0.6192 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.5069, allocations: 28 kB / 0.6192 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008165/0.5077, allocations: 51.95 kB / 0.6192 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.508, allocations: 91.59 kB / 0.6193 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.64e-05/0.508, allocations: 35.98 kB / 0.6194 GB, free: 2.234 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001798/0.5098, allocations: 1.087 MB / 0.6204 GB, free: 1.152 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5098, allocations: 0 / 0.6204 GB, free: 1.152 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002097/0.5119, allocations: 0.5078 MB / 0.6209 GB, free: 0.6445 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004935/0.5169, allocations: 3.188 MB / 0.624 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003118/0.52, allocations: 1.724 MB / 0.6257 GB, free: 11.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5201, allocations: 0 / 0.6257 GB, free: 11.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002022/0.5221, allocations: 1.214 MB / 0.6269 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.5248, allocations: 0.5086 MB / 0.6274 GB, free: 9.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03178/0.5566, allocations: 17.96 MB / 0.6449 GB, free: 7.344 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002419/0.5591, allocations: 2.232 MB / 0.6471 GB, free: 5.086 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001374/0.5605, allocations: 375.3 kB / 0.6475 GB, free: 4.715 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001594/0.5621, allocations: 1.112 MB / 0.6486 GB, free: 3.602 MB / 462.1 MB Notification: Performance of SimCode: time 1.293e-06/0.5621, allocations: 0 / 0.6486 GB, free: 3.602 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1209/0.6829, allocations: 47.45 MB / 0.6949 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/13.06, allocations: 7.797 kB / 0.6949 GB, free: 4.539 MB / 0.4981 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)