Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",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.001557/0.001557, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 239.2 MB, free: 4.57 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.002201/0.002201, allocations: 188.5 kB / 289.6 MB, free: 2.301 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03537/0.03537, allocations: 8.787 MB / 348.5 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 79.02 kB / 411.2 MB, free: 41.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.1002, allocations: 51.57 MB / 462.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.0147/0.1149, allocations: 13.58 MB / 476.3 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.1251, allocations: 4.446 MB / 480.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002739/0.1279, allocations: 79.69 kB / 480.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002815/0.1307, allocations: 0.9783 MB / 481.8 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004331/0.1351, allocations: 1.304 MB / 483.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002515/0.1377, allocations: 0.8894 MB / 484 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005141/0.1428, allocations: 4.144 MB / 488.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004404/0.1472, allocations: 3.197 MB / 491.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002825/0.1501, allocations: 1.904 MB / 493.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003094/0.1532, allocations: 2.066 MB / 495.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001291/0.1545, allocations: 0.5078 MB / 495.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.1564, allocations: 0.7185 MB / 496.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009439/0.1574, allocations: 1.098 MB / 497.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002455/0.1598, allocations: 2.143 MB / 499.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006102/0.1659, allocations: 6.633 MB / 0.4946 GB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.166, allocations: 0 / 0.4946 GB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.166, allocations: 0 / 0.4946 GB, free: 2.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001357/0.1661, allocations: 4 kB / 0.4946 GB, free: 2.281 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.0102/0.1763, allocations: 4.41 MB / 0.4989 GB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.1764, allocations: 8.031 kB / 0.4989 GB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005834/0.177, allocations: 471.9 kB / 0.4993 GB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004113/0.1811, allocations: 0.8317 MB / 0.5002 GB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003906/0.185, allocations: 2.369 MB / 0.5025 GB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.1852, allocations: 242.9 kB / 0.5027 GB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004805/0.1857, allocations: 331.8 kB / 0.503 GB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006863/0.1925, allocations: 4.326 MB / 0.5072 GB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.747e-05/0.1926, allocations: 3.906 kB / 0.5072 GB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003078/0.1929, allocations: 132 kB / 0.5074 GB, free: 4.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001349/0.1931, allocations: 146.5 kB / 0.5075 GB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005677/0.1988, allocations: 3.594 MB / 0.511 GB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02452/0.2233, allocations: 13.84 MB / 0.5245 GB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1852/0.4085, allocations: 6.642 MB / 0.531 GB, free: 59.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002381/0.4109, allocations: 1.378 MB / 0.5324 GB, free: 59.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005573/0.4165, allocations: 3.671 MB / 0.536 GB, free: 59.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.4179, allocations: 0.9424 MB / 0.5369 GB, free: 59.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 2.925e-06/0.418, allocations: 0 / 0.5369 GB, free: 59.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.0113/0.4293, allocations: 5.986 MB / 0.5427 GB, free: 57.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.4294, allocations: 227.1 kB / 0.5429 GB, free: 57.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002678/0.4321, allocations: 1.787 MB / 0.5447 GB, free: 57.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001113/0.4322, allocations: 53.67 kB / 0.5447 GB, free: 57.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001397/0.4336, allocations: 1.468 MB / 0.5462 GB, free: 56.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000396/0.434, allocations: 0.4958 MB / 0.5466 GB, free: 55.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005784/0.4346, allocations: 349.7 kB / 0.547 GB, free: 55.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.202e-05/0.4347, allocations: 301.1 kB / 0.5473 GB, free: 55.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.4358, allocations: 0.69 MB / 0.5479 GB, free: 54.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.4371, allocations: 1.346 MB / 0.5493 GB, free: 53.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002454/0.4396, allocations: 2.12 MB / 0.5513 GB, free: 52.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.4396, allocations: 5.594 kB / 0.5513 GB, free: 52.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004115/0.4437, allocations: 2.64 MB / 0.5539 GB, free: 51.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.4438, allocations: 17.81 kB / 0.5539 GB, free: 51.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/0.4438, allocations: 15.78 kB / 0.5539 GB, free: 51.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008762/0.4447, allocations: 369.4 kB / 0.5543 GB, free: 51.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.4459, allocations: 404.8 kB / 0.5547 GB, free: 51.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005743/0.4517, allocations: 8.44 MB / 0.5629 GB, free: 43.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.4534, allocations: 94.3 kB / 0.563 GB, free: 43.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.4536, allocations: 82.64 kB / 0.5631 GB, free: 43.74 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001706/0.4553, allocations: 1.044 MB / 0.5641 GB, free: 43.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000381/0.4557, allocations: 199.6 kB / 0.5643 GB, free: 42.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003378/0.459, allocations: 2.337 MB / 0.5666 GB, free: 41.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.4591, allocations: 11.56 kB / 0.5666 GB, free: 41.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.4591, allocations: 13 kB / 0.5666 GB, free: 41.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.4591, allocations: 7.969 kB / 0.5666 GB, free: 41.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006384/0.4655, allocations: 5.135 MB / 0.5716 GB, free: 37.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.4655, allocations: 0.875 kB / 0.5716 GB, free: 37.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007127/0.4662, allocations: 175.8 kB / 0.5718 GB, free: 37.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.4675, allocations: 0.5278 MB / 0.5723 GB, free: 37.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.103e-05/0.4676, allocations: 43.98 kB / 0.5724 GB, free: 37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008925/0.4765, allocations: 13.26 MB / 0.5853 GB, free: 22.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4765, allocations: 7.969 kB / 0.5853 GB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004421/0.481, allocations: 3.28 MB / 0.5885 GB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009121/0.4819, allocations: 422.6 kB / 0.5889 GB, free: 19.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/0.4822, allocations: 47.92 kB / 0.589 GB, free: 19.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008244/0.483, allocations: 67.95 kB / 0.589 GB, free: 19.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002952/0.4833, allocations: 105.2 kB / 0.5891 GB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.122e-05/0.4834, allocations: 40.05 kB / 0.5892 GB, free: 18.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001548/0.4849, allocations: 1.223 MB / 0.5904 GB, free: 17.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.485, allocations: 1.203 kB / 0.5904 GB, free: 17.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002325/0.4873, allocations: 0.6002 MB / 0.5909 GB, free: 17.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,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.004485/0.4918, allocations: 3.902 MB / 0.5948 GB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004412/0.4962, allocations: 2.823 MB / 0.5975 GB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.4962, allocations: 3.906 kB / 0.5975 GB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.4983, allocations: 1.765 MB / 0.5992 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.00246/0.5008, allocations: 0.5532 MB / 0.5998 GB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03252/0.5333, allocations: 23.18 MB / 0.6224 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002766/0.5361, allocations: 2.335 MB / 0.6247 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001669/0.5378, allocations: 413.3 kB / 0.6251 GB, free: 12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001494/0.5393, allocations: 1.151 MB / 0.6262 GB, free: 10.85 MB / 398.1 MB Notification: Performance of SimCode: time 1.653e-06/0.5393, allocations: 0 / 0.6262 GB, free: 10.85 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1369/0.6762, allocations: 53.8 MB / 0.6788 GB, free: 5.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.96, allocations: 10.28 kB / 0.6788 GB, free: 5.422 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)