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.0066/0.0066, allocations: 102.5 kB / 15.73 MB, free: 5.984 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.402/1.402, allocations: 222.9 MB / 239.4 MB, free: 4.496 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.00169/0.001689, allocations: 180.5 kB / 289.7 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03462/0.03462, allocations: 8.805 MB / 348.7 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 75.88 kB / 463.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1211, allocations: 51.57 MB / 0.5029 GB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01746/0.1386, allocations: 13.59 MB / 0.5162 GB, free: 12.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.1496, allocations: 4.442 MB / 0.5205 GB, free: 7.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002971/0.1527, allocations: 79.75 kB / 0.5206 GB, free: 7.742 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003573/0.1563, allocations: 0.9744 MB / 0.5216 GB, free: 6.762 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004978/0.1613, allocations: 1.308 MB / 0.5228 GB, free: 5.445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002854/0.1642, allocations: 0.8923 MB / 0.5237 GB, free: 4.555 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006982/0.1712, allocations: 4.186 MB / 0.5278 GB, free: 356 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2896/0.4608, allocations: 3.181 MB / 0.5309 GB, free: 5.047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003245/0.4641, allocations: 1.915 MB / 0.5328 GB, free: 4.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00328/0.4674, allocations: 2.076 MB / 0.5348 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/0.4687, allocations: 0.5089 MB / 0.5353 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.4707, allocations: 0.7029 MB / 0.536 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.4718, allocations: 1.104 MB / 0.5371 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003231/0.475, allocations: 2.136 MB / 0.5391 GB, free: 3.879 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009674/0.4847, allocations: 6.69 MB / 0.5457 GB, free: 3.207 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4847, allocations: 0.5 kB / 0.5457 GB, free: 3.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4847, allocations: 0 / 0.5457 GB, free: 3.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002238/0.485, allocations: 1.062 kB / 0.5457 GB, free: 3.207 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.01494/0.4999, allocations: 4.414 MB / 0.55 GB, free: 1.598 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.5, allocations: 9.656 kB / 0.55 GB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009118/0.5009, allocations: 464.3 kB / 0.5504 GB, free: 1.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004537/0.5054, allocations: 0.8185 MB / 0.5512 GB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005662/0.5111, allocations: 2.439 MB / 0.5536 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000234/0.5114, allocations: 249.5 kB / 0.5539 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009923/0.5124, allocations: 333.1 kB / 0.5542 GB, free: 448 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009951/0.5224, allocations: 4.319 MB / 0.5584 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-05/0.5225, allocations: 7.406 kB / 0.5584 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003622/0.5228, allocations: 129.1 kB / 0.5585 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001331/0.523, allocations: 155.8 kB / 0.5587 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007004/0.53, allocations: 3.595 MB / 0.5622 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02441/0.5544, allocations: 13.68 MB / 0.5755 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006599/0.5611, allocations: 6.65 MB / 0.582 GB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002352/0.5635, allocations: 1.396 MB / 0.5834 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006621/0.5701, allocations: 3.665 MB / 0.587 GB, free: 4.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.5715, allocations: 0.9387 MB / 0.5879 GB, free: 3.852 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 3.426e-06/0.5716, allocations: 0 / 0.5879 GB, free: 3.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.01278/0.5843, allocations: 5.983 MB / 0.5937 GB, free: 13.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.5845, allocations: 230.9 kB / 0.594 GB, free: 13.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003712/0.5882, allocations: 1.784 MB / 0.5957 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001834/0.5884, allocations: 53.7 kB / 0.5957 GB, free: 11.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001679/0.5901, allocations: 1.464 MB / 0.5972 GB, free: 10.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005286/0.5907, allocations: 0.498 MB / 0.5977 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000703/0.5914, allocations: 347.2 kB / 0.598 GB, free: 9.254 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.5915, allocations: 301.1 kB / 0.5983 GB, free: 8.957 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.5928, allocations: 0.6949 MB / 0.599 GB, free: 8.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.5945, allocations: 1.352 MB / 0.6003 GB, free: 6.645 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003033/0.5976, allocations: 2.11 MB / 0.6023 GB, free: 4.352 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.369e-05/0.5976, allocations: 8 kB / 0.6023 GB, free: 4.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.00477/0.6024, allocations: 2.641 MB / 0.6049 GB, free: 1.789 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/0.6024, allocations: 12 kB / 0.6049 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.597e-05/0.6025, allocations: 23.94 kB / 0.605 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.6036, allocations: 372 kB / 0.6053 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.605, allocations: 399.5 kB / 0.6057 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008228/0.6133, allocations: 8.426 MB / 0.6139 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.6153, allocations: 102.5 kB / 0.614 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/0.6156, allocations: 87.98 kB / 0.6141 GB, free: 7.906 MB / 430.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.002475/0.6181, allocations: 1.031 MB / 0.6151 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006779/0.6188, allocations: 197.6 kB / 0.6153 GB, free: 6.695 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004762/0.6236, allocations: 2.334 MB / 0.6176 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.6236, allocations: 16 kB / 0.6176 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.255e-05/0.6236, allocations: 11.94 kB / 0.6176 GB, free: 4.293 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.048e-05/0.6237, allocations: 7.969 kB / 0.6176 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.6343, allocations: 5.129 MB / 0.6226 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.6344, allocations: 0 / 0.6226 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000816/0.6352, allocations: 178.6 kB / 0.6228 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001543/0.6367, allocations: 0.5266 MB / 0.6233 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.6369, allocations: 43.98 kB / 0.6233 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01303/0.6499, allocations: 13.24 MB / 0.6363 GB, free: 348 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.922e-06/0.65, allocations: 7.969 kB / 0.6363 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00582/0.6558, allocations: 3.286 MB / 0.6395 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/0.6571, allocations: 430.6 kB / 0.6399 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006751/0.6578, allocations: 43.92 kB / 0.64 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.6591, allocations: 63.95 kB / 0.64 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000342/0.6595, allocations: 111.8 kB / 0.6401 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.971e-05/0.6596, allocations: 39.98 kB / 0.6402 GB, free: 12.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002561/0.6622, allocations: 1.219 MB / 0.6413 GB, free: 11.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6622, allocations: 0 / 0.6413 GB, free: 11.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003261/0.6655, allocations: 0.6015 MB / 0.6419 GB, free: 10.49 MB / 462.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.006065/0.6715, allocations: 3.897 MB / 0.6457 GB, free: 6.535 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004117/0.6757, allocations: 2.42 MB / 0.6481 GB, free: 4.105 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.6757, allocations: 4 kB / 0.6481 GB, free: 4.102 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002733/0.6785, allocations: 1.751 MB / 0.6498 GB, free: 2.297 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/0.6822, allocations: 0.5491 MB / 0.6504 GB, free: 1.754 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04568/0.7279, allocations: 20.66 MB / 0.6705 GB, free: 12.46 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004161/0.7321, allocations: 2.331 MB / 0.6728 GB, free: 10.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002057/0.7342, allocations: 417.3 kB / 0.6732 GB, free: 9.691 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002424/0.7367, allocations: 1.151 MB / 0.6743 GB, free: 8.539 MB / 494.1 MB Notification: Performance of SimCode: time 3.036e-06/0.7367, allocations: 0 / 0.6743 GB, free: 8.539 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1536/0.8903, allocations: 55.41 MB / 0.7284 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.1, allocations: 11.86 kB / 0.7284 GB, free: 1.543 MB / 0.5294 GB (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)