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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0009141/0.0009141, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.348/1.348, allocations: 223.2 MB / 238.9 MB, free: 5.668 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.001218/0.001218, allocations: 185 kB / 290.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03289/0.03289, allocations: 8.789 MB / 350.1 MB, free: 4.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004236/0.0004237, allocations: 13.78 kB / 413.2 MB, free: 43.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1255, allocations: 52.56 MB / 465.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01198/0.1375, allocations: 10.94 MB / 476.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009958/0.1475, allocations: 4.232 MB / 480.9 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002738/0.1503, allocations: 63.75 kB / 481 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003052/0.1534, allocations: 0.7617 MB / 481.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005394/0.1588, allocations: 1.149 MB / 482.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002663/0.1615, allocations: 0.6234 MB / 483.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006364/0.1679, allocations: 2.855 MB / 486.4 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003095/0.171, allocations: 2.183 MB / 488.5 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00239/0.1734, allocations: 1.273 MB / 489.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002648/0.1761, allocations: 1.447 MB / 491.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005126/0.1766, allocations: 208 kB / 491.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.178, allocations: 367.8 kB / 491.8 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006201/0.1786, allocations: 0.6929 MB / 492.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001/0.1796, allocations: 0.746 MB / 493.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005569/0.1852, allocations: 5.395 MB / 498.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1853, allocations: 3.938 kB / 498.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1853, allocations: 0 / 498.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002014/0.1855, allocations: 4 kB / 498.7 MB, free: 12.44 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.01059/0.1961, allocations: 3.736 MB / 0.4906 GB, free: 8.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.1962, allocations: 11.97 kB / 0.4906 GB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001569/0.1977, allocations: 463.8 kB / 0.4911 GB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00453/0.2023, allocations: 0.8232 MB / 0.4919 GB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005561/0.2079, allocations: 2.295 MB / 0.4941 GB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002229/0.2081, allocations: 246.5 kB / 0.4944 GB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008881/0.209, allocations: 335.9 kB / 0.4947 GB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00854/0.2176, allocations: 4.271 MB / 0.4988 GB, free: 80 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.719e-05/0.2177, allocations: 11.91 kB / 0.4989 GB, free: 68 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003252/0.218, allocations: 128 kB / 0.499 GB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/0.2182, allocations: 150.5 kB / 0.4991 GB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006916/0.2251, allocations: 3.582 MB / 0.5026 GB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02549/0.2506, allocations: 13.86 MB / 0.5162 GB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007163/0.2578, allocations: 6.609 MB / 0.5226 GB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007105/0.265, allocations: 3.273 MB / 0.5258 GB, free: 3.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00164/0.2666, allocations: 0.9626 MB / 0.5267 GB, free: 2.176 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 5.3e-06/0.2667, allocations: 4 kB / 0.5267 GB, free: 2.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=152): time 0.2231/0.4897, allocations: 6.096 MB / 0.5327 GB, free: 63.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.4899, allocations: 231.3 kB / 0.5329 GB, free: 62.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00247/0.4924, allocations: 1.723 MB / 0.5346 GB, free: 62.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.4925, allocations: 58.88 kB / 0.5347 GB, free: 62.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.4936, allocations: 1.451 MB / 0.5361 GB, free: 61.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000362/0.494, allocations: 0.5116 MB / 0.5366 GB, free: 61.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.052e-05/0.494, allocations: 38.19 kB / 0.5366 GB, free: 61.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4942, allocations: 382.5 kB / 0.537 GB, free: 61.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.4953, allocations: 0.7085 MB / 0.5377 GB, free: 61.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.4967, allocations: 1.344 MB / 0.539 GB, free: 60.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.4981, allocations: 0.9568 MB / 0.5399 GB, free: 60.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/0.4981, allocations: 5.781 kB / 0.5399 GB, free: 60.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004472/0.5026, allocations: 2.668 MB / 0.5425 GB, free: 60.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.5027, allocations: 13.75 kB / 0.5425 GB, free: 60.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/0.5027, allocations: 17.31 kB / 0.5426 GB, free: 60.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.5037, allocations: 367.4 kB / 0.5429 GB, free: 60.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.5052, allocations: 398.7 kB / 0.5433 GB, free: 60.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006273/0.5114, allocations: 7.805 MB / 0.5509 GB, free: 53.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.513, allocations: 102.4 kB / 0.551 GB, free: 53.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.5131, allocations: 79.88 kB / 0.5511 GB, free: 53.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(1,100.0%) 1,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001876/0.515, allocations: 1.035 MB / 0.5521 GB, free: 52.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003181/0.5153, allocations: 197.6 kB / 0.5523 GB, free: 52.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.5191, allocations: 2.395 MB / 0.5546 GB, free: 51.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.5191, allocations: 11.78 kB / 0.5546 GB, free: 51.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.5191, allocations: 8.469 kB / 0.5546 GB, free: 51.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.5191, allocations: 11.27 kB / 0.5547 GB, free: 51.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006789/0.5259, allocations: 5.21 MB / 0.5597 GB, free: 49.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.526, allocations: 0 / 0.5597 GB, free: 49.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008268/0.5268, allocations: 185.2 kB / 0.5599 GB, free: 49.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.528, allocations: 0.5267 MB / 0.5604 GB, free: 49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.26e-05/0.5281, allocations: 43.67 kB / 0.5605 GB, free: 48.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009419/0.5376, allocations: 12.25 MB / 0.5724 GB, free: 37.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5376, allocations: 0 / 0.5724 GB, free: 37.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005171/0.5428, allocations: 3.453 MB / 0.5758 GB, free: 35.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/0.5443, allocations: 438.6 kB / 0.5762 GB, free: 34.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.5446, allocations: 44.5 kB / 0.5763 GB, free: 34.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008523/0.5454, allocations: 71.95 kB / 0.5763 GB, free: 34.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003041/0.5457, allocations: 109.2 kB / 0.5764 GB, free: 34.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.699e-05/0.5458, allocations: 44.5 kB / 0.5765 GB, free: 34.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001544/0.5474, allocations: 1.176 MB / 0.5776 GB, free: 33.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5474, allocations: 0 / 0.5776 GB, free: 33.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002282/0.5497, allocations: 0.6041 MB / 0.5782 GB, free: 32.73 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[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004297/0.554, allocations: 4.467 MB / 0.5826 GB, free: 28.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003153/0.5572, allocations: 2.457 MB / 0.585 GB, free: 25.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5572, allocations: 1.938 kB / 0.585 GB, free: 25.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002063/0.5593, allocations: 1.8 MB / 0.5867 GB, free: 23.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/0.5614, allocations: 0.5086 MB / 0.5872 GB, free: 23.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.5745, allocations: 21.26 MB / 0.608 GB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001895/0.5764, allocations: 2.397 MB / 0.6103 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001543/0.578, allocations: 417.4 kB / 0.6107 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/0.5794, allocations: 1.155 MB / 0.6119 GB, free: 13.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5794, allocations: 1.422 kB / 0.6119 GB, free: 13.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08411/0.6635, allocations: 49.55 MB / 0.6603 GB, free: 12.31 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.6637, allocations: 198.2 kB / 0.6604 GB, free: 12.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.876/3.539, allocations: 0.75 kB / 0.6604 GB, free: 12.07 MB / 430.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/linux/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) Environment - environmentSimulation: