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.001155/0.001155, allocations: 105.4 kB / 15.7 MB, free: 24 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.421/1.421, allocations: 222.9 MB / 239.3 MB, free: 4.605 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.00183/0.00183, allocations: 192.4 kB / 289.7 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03407/0.03407, allocations: 8.798 MB / 348.6 MB, free: 4.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 78.19 kB / 411.3 MB, free: 41.92 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1297, allocations: 51.57 MB / 462.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01532/0.1451, allocations: 13.6 MB / 476.5 MB, free: 500 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.1552, allocations: 4.431 MB / 480.9 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003152/0.1584, allocations: 79.69 kB / 481 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003612/0.1621, allocations: 0.9823 MB / 482 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005993/0.1681, allocations: 1.304 MB / 483.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002897/0.171, allocations: 0.8912 MB / 484.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006911/0.1779, allocations: 4.177 MB / 488.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004021/0.182, allocations: 3.186 MB / 491.6 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003016/0.185, allocations: 1.9 MB / 493.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003496/0.1886, allocations: 2.074 MB / 495.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001015/0.1896, allocations: 0.5078 MB / 496 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00211/0.1917, allocations: 0.7146 MB / 496.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001253/0.193, allocations: 1.099 MB / 497.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004046/0.1971, allocations: 2.147 MB / 0.4883 GB, free: 8.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007756/0.2048, allocations: 6.679 MB / 0.4948 GB, free: 2.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.2049, allocations: 0 / 0.4948 GB, free: 2.156 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.2049, allocations: 0 / 0.4948 GB, free: 2.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002206/0.2051, allocations: 0 / 0.4948 GB, free: 2.156 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.01268/0.2178, allocations: 4.414 MB / 0.4991 GB, free: 13.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.2179, allocations: 8.031 kB / 0.4991 GB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007018/0.2186, allocations: 464 kB / 0.4996 GB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004209/0.2228, allocations: 0.8201 MB / 0.5004 GB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004783/0.2276, allocations: 2.439 MB / 0.5028 GB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.2278, allocations: 242.9 kB / 0.503 GB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005786/0.2284, allocations: 339.8 kB / 0.5033 GB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007637/0.2361, allocations: 4.314 MB / 0.5075 GB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.64e-05/0.2362, allocations: 11.84 kB / 0.5075 GB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003114/0.2365, allocations: 136 kB / 0.5077 GB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.2367, allocations: 150.5 kB / 0.5078 GB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006245/0.2429, allocations: 3.594 MB / 0.5113 GB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02414/0.2671, allocations: 13.67 MB / 0.5247 GB, free: 3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2309/0.498, allocations: 6.629 MB / 0.5311 GB, free: 59.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00272/0.5008, allocations: 1.381 MB / 0.5325 GB, free: 59.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006607/0.5074, allocations: 3.657 MB / 0.5361 GB, free: 59.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001598/0.509, allocations: 0.9467 MB / 0.537 GB, free: 59.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.637e-06/0.5091, allocations: 0 / 0.537 GB, free: 59.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01272/0.5218, allocations: 5.978 MB / 0.5428 GB, free: 57.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.5219, allocations: 230.4 kB / 0.543 GB, free: 57.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/0.5254, allocations: 1.793 MB / 0.5448 GB, free: 57.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001657/0.5255, allocations: 58.08 kB / 0.5448 GB, free: 57.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.5268, allocations: 1.464 MB / 0.5463 GB, free: 55.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003999/0.5272, allocations: 0.4914 MB / 0.5468 GB, free: 55.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005484/0.5277, allocations: 347.2 kB / 0.5471 GB, free: 55.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.68e-05/0.5278, allocations: 301.1 kB / 0.5474 GB, free: 55.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.5291, allocations: 0.6964 MB / 0.5481 GB, free: 54.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.5307, allocations: 1.354 MB / 0.5494 GB, free: 53.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002912/0.5337, allocations: 2.112 MB / 0.5514 GB, free: 52.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.655e-05/0.5337, allocations: 6.094 kB / 0.5514 GB, free: 52.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005053/0.5387, allocations: 2.647 MB / 0.554 GB, free: 51.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.5388, allocations: 11.78 kB / 0.554 GB, free: 51.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.771e-05/0.5388, allocations: 19.75 kB / 0.5541 GB, free: 51.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009654/0.5398, allocations: 368.2 kB / 0.5544 GB, free: 51.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.5411, allocations: 392.1 kB / 0.5548 GB, free: 50.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006121/0.5472, allocations: 8.443 MB / 0.563 GB, free: 43.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/0.5491, allocations: 93.92 kB / 0.5631 GB, free: 43.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.5493, allocations: 86.33 kB / 0.5632 GB, free: 43.65 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.002033/0.5513, allocations: 1.04 MB / 0.5642 GB, free: 42.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004869/0.5518, allocations: 196.6 kB / 0.5644 GB, free: 42.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003622/0.5555, allocations: 2.344 MB / 0.5667 GB, free: 41.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.5555, allocations: 14.92 kB / 0.5667 GB, free: 41.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.5555, allocations: 11.25 kB / 0.5667 GB, free: 41.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.5555, allocations: 7.969 kB / 0.5667 GB, free: 41.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007442/0.563, allocations: 5.126 MB / 0.5717 GB, free: 37.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.563, allocations: 4 kB / 0.5717 GB, free: 37.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007557/0.5638, allocations: 171.8 kB / 0.5719 GB, free: 37.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001379/0.5652, allocations: 0.5308 MB / 0.5724 GB, free: 36.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.5653, allocations: 41.05 kB / 0.5725 GB, free: 36.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01029/0.5756, allocations: 13.25 MB / 0.5854 GB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.278e-05/0.5757, allocations: 3.938 kB / 0.5854 GB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005314/0.5811, allocations: 3.278 MB / 0.5886 GB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/0.5824, allocations: 430.6 kB / 0.589 GB, free: 19.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007961/0.5832, allocations: 52.48 kB / 0.5891 GB, free: 19.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.5846, allocations: 51.97 kB / 0.5891 GB, free: 18.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003389/0.585, allocations: 121.1 kB / 0.5892 GB, free: 18.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.184e-05/0.5851, allocations: 43.98 kB / 0.5893 GB, free: 18.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00233/0.5874, allocations: 1.211 MB / 0.5905 GB, free: 17.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5874, allocations: 0 / 0.5905 GB, free: 17.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003301/0.5907, allocations: 0.5938 MB / 0.591 GB, free: 17.02 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.00512/0.5959, allocations: 3.907 MB / 0.5948 GB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003539/0.5994, allocations: 2.42 MB / 0.5972 GB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.5995, allocations: 448 / 0.5972 GB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/0.6017, allocations: 1.766 MB / 0.5989 GB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/0.605, allocations: 0.5557 MB / 0.5995 GB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0406/0.6456, allocations: 20.66 MB / 0.6197 GB, free: 2.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003245/0.6489, allocations: 2.331 MB / 0.6219 GB, free: 416 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001631/0.6505, allocations: 413.3 kB / 0.6223 GB, free: 8 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/0.6524, allocations: 1.159 MB / 0.6235 GB, free: 14.87 MB / 398.1 MB Notification: Performance of SimCode: time 1.373e-06/0.6524, allocations: 0 / 0.6235 GB, free: 14.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1186/0.771, allocations: 53.77 MB / 0.676 GB, free: 9.504 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.7, allocations: 8.062 kB / 0.676 GB, free: 9.496 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)