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.001212/0.001212, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.267/1.267, allocations: 222.9 MB / 238.9 MB, free: 4.75 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.001149/0.001149, allocations: 192.5 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03401/0.03401, allocations: 8.795 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 79.66 kB / 410.5 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07216/0.07357, allocations: 51.57 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01367/0.08729, allocations: 13.23 MB / 475.3 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007656/0.09497, allocations: 4.376 MB / 479.7 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002125/0.09713, allocations: 87.62 kB / 479.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003049/0.1002, allocations: 0.894 MB / 480.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003666/0.1039, allocations: 1.176 MB / 481.8 MB, free: 10.9 MB / 318.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.002042/0.106, allocations: 0.8002 MB / 482.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00459/0.1106, allocations: 4.058 MB / 486.7 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003481/0.1141, allocations: 2.785 MB / 489.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.1158, allocations: 1.444 MB / 490.9 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001668/0.1175, allocations: 1.86 MB / 492.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003805/0.1179, allocations: 296 kB / 493.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009758/0.1189, allocations: 0.4919 MB / 493.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006206/0.1195, allocations: 0.8681 MB / 494.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001619/0.1211, allocations: 1.827 MB / 496.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004554/0.1257, allocations: 6.212 MB / 0.4907 GB, free: 6.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1257, allocations: 0 / 0.4907 GB, free: 6.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1257, allocations: 0 / 0.4907 GB, free: 6.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001039/0.1258, allocations: 0 / 0.4907 GB, free: 6.141 MB / 334.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.009459/0.1353, allocations: 4.172 MB / 0.4948 GB, free: 1.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.1353, allocations: 8.031 kB / 0.4948 GB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007041/0.1361, allocations: 493.6 kB / 0.4952 GB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003672/0.1397, allocations: 0.754 MB / 0.496 GB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/0.1436, allocations: 2.215 MB / 0.4981 GB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.1438, allocations: 234.7 kB / 0.4984 GB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004446/0.1443, allocations: 315.8 kB / 0.4987 GB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007117/0.1514, allocations: 4.169 MB / 0.5027 GB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.431e-05/0.1515, allocations: 3.906 kB / 0.5027 GB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002741/0.1518, allocations: 132 kB / 0.5029 GB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.1519, allocations: 142.3 kB / 0.503 GB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005934/0.1578, allocations: 3.503 MB / 0.5064 GB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/0.1758, allocations: 13.21 MB / 0.5193 GB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00472/0.1806, allocations: 5.51 MB / 0.5247 GB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.1822, allocations: 1.075 MB / 0.5258 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1487/0.331, allocations: 3.037 MB / 0.5287 GB, free: 65.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.331, allocations: 45.03 kB / 0.5288 GB, free: 65.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 2.454e-06/0.331, allocations: 0 / 0.5288 GB, free: 65.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.007958/0.339, allocations: 4.616 MB / 0.5333 GB, free: 64.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.339, allocations: 63.97 kB / 0.5333 GB, free: 64.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/0.3412, allocations: 1.605 MB / 0.5349 GB, free: 63.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/0.3413, allocations: 47.36 kB / 0.535 GB, free: 63.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007885/0.3421, allocations: 1.418 MB / 0.5363 GB, free: 63.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002287/0.3423, allocations: 394.9 kB / 0.5367 GB, free: 63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003839/0.3427, allocations: 273.4 kB / 0.537 GB, free: 62.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.915e-05/0.3428, allocations: 301.1 kB / 0.5373 GB, free: 62.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009363/0.3437, allocations: 0.5665 MB / 0.5378 GB, free: 62.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.3449, allocations: 1.06 MB / 0.5388 GB, free: 62.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002028/0.3469, allocations: 1.726 MB / 0.5405 GB, free: 61.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.3469, allocations: 8.828 kB / 0.5405 GB, free: 61.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003233/0.3501, allocations: 2.034 MB / 0.5425 GB, free: 60.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.3502, allocations: 12.17 kB / 0.5425 GB, free: 60.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.3502, allocations: 20.31 kB / 0.5426 GB, free: 60.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003838/0.3506, allocations: 144.4 kB / 0.5427 GB, free: 60.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.3519, allocations: 360.3 kB / 0.543 GB, free: 60.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/0.3537, allocations: 3.091 MB / 0.5461 GB, free: 57.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.3549, allocations: 81.06 kB / 0.5461 GB, free: 57.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.804e-05/0.355, allocations: 65.03 kB / 0.5462 GB, free: 57.3 MB / 366.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.001385/0.3564, allocations: 0.9614 MB / 0.5471 GB, free: 56.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.3566, allocations: 170.5 kB / 0.5473 GB, free: 56.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.3594, allocations: 1.811 MB / 0.5491 GB, free: 55.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.3594, allocations: 11.73 kB / 0.5491 GB, free: 55.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3595, allocations: 4.156 kB / 0.5491 GB, free: 55.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.3595, allocations: 5.391 kB / 0.5491 GB, free: 55.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005511/0.365, allocations: 4.36 MB / 0.5533 GB, free: 53.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.365, allocations: 0.5156 kB / 0.5533 GB, free: 53.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007435/0.3658, allocations: 180.8 kB / 0.5535 GB, free: 53.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007463/0.3665, allocations: 308.2 kB / 0.5538 GB, free: 53.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/0.3666, allocations: 36.16 kB / 0.5538 GB, free: 53.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004754/0.3714, allocations: 7.462 MB / 0.5611 GB, free: 46.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3714, allocations: 3.844 kB / 0.5611 GB, free: 46.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003406/0.3748, allocations: 2.566 MB / 0.5636 GB, free: 45.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005891/0.3754, allocations: 372.2 kB / 0.564 GB, free: 44.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.3756, allocations: 31.56 kB / 0.564 GB, free: 44.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007272/0.3763, allocations: 50.14 kB / 0.5641 GB, free: 44.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.3765, allocations: 87.06 kB / 0.5642 GB, free: 44.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.855e-05/0.3766, allocations: 37.52 kB / 0.5642 GB, free: 44.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.3779, allocations: 1.092 MB / 0.5653 GB, free: 44.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3779, allocations: 0 / 0.5653 GB, free: 44.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00165/0.3795, allocations: 0.5063 MB / 0.5658 GB, free: 44.13 MB / 366.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.003331/0.3829, allocations: 3.17 MB / 0.5689 GB, free: 40.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00225/0.3851, allocations: 1.709 MB / 0.5705 GB, free: 39.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3852, allocations: 0.6562 kB / 0.5705 GB, free: 39.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.3866, allocations: 1.234 MB / 0.5717 GB, free: 37.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/0.3886, allocations: 491.1 kB / 0.5722 GB, free: 37.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02775/0.4164, allocations: 21.02 MB / 0.5927 GB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001331/0.4178, allocations: 2.233 MB / 0.5949 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001224/0.419, allocations: 375.3 kB / 0.5953 GB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009971/0.42, allocations: 1.108 MB / 0.5963 GB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.42, allocations: 0 / 0.5963 GB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06125/0.4813, allocations: 45.14 MB / 0.6404 GB, free: 14.41 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/0.4815, allocations: 229.3 kB / 0.6406 GB, free: 14.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.44/2.922, allocations: 0 / 0.6406 GB, free: 14.14 MB / 414.1 MB (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)