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.001408/0.001408, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.341/1.341, allocations: 222.9 MB / 239 MB, free: 4.758 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.001163/0.001163, allocations: 184.5 kB / 289.3 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03439/0.03439, allocations: 8.789 MB / 348.2 MB, free: 4.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 80.69 kB / 410.7 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0899/0.09138, allocations: 51.57 MB / 462.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01377/0.1052, allocations: 13.44 MB / 475.7 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008364/0.1136, allocations: 4.372 MB / 480.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002551/0.1162, allocations: 75.69 kB / 480.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003245/0.1195, allocations: 0.8668 MB / 481 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004338/0.1239, allocations: 1.166 MB / 482.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002435/0.1263, allocations: 0.7999 MB / 483 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005763/0.1321, allocations: 4.311 MB / 487.3 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004851/0.137, allocations: 3.197 MB / 490.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002765/0.1398, allocations: 1.791 MB / 492.3 MB, free: 460 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003369/0.1431, allocations: 2.055 MB / 494.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001294/0.1445, allocations: 0.5039 MB / 494.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002282/0.1468, allocations: 0.7146 MB / 495.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001463/0.1482, allocations: 1.083 MB / 496.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00373/0.152, allocations: 2.139 MB / 498.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007766/0.1598, allocations: 6.609 MB / 0.4935 GB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1598, allocations: 4 kB / 0.4935 GB, free: 3.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1598, allocations: 0 / 0.4935 GB, free: 3.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002158/0.16, allocations: 0 / 0.4935 GB, free: 3.301 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.01314/0.1732, allocations: 4.406 MB / 0.4978 GB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.1733, allocations: 8.031 kB / 0.4978 GB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001458/0.1747, allocations: 464 kB / 0.4983 GB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005084/0.1798, allocations: 0.824 MB / 0.4991 GB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005297/0.1852, allocations: 2.326 MB / 0.5014 GB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002762/0.1855, allocations: 250.9 kB / 0.5016 GB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/0.1867, allocations: 335.8 kB / 0.5019 GB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.1984, allocations: 4.318 MB / 0.5061 GB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001714/0.1986, allocations: 11.91 kB / 0.5062 GB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000941/0.1995, allocations: 128 kB / 0.5063 GB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00018/0.1997, allocations: 150.5 kB / 0.5064 GB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008107/0.2079, allocations: 3.594 MB / 0.5099 GB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02462/0.2325, allocations: 13.84 MB / 0.5234 GB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1586/0.3912, allocations: 6.628 MB / 0.5299 GB, free: 61.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002732/0.394, allocations: 1.389 MB / 0.5313 GB, free: 61.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005875/0.3999, allocations: 3.665 MB / 0.5349 GB, free: 60.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001472/0.4014, allocations: 0.9416 MB / 0.5358 GB, free: 60.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.747e-06/0.4014, allocations: 0 / 0.5358 GB, free: 60.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01168/0.4131, allocations: 5.989 MB / 0.5416 GB, free: 58.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.244e-05/0.4132, allocations: 228.7 kB / 0.5418 GB, free: 58.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00247/0.4156, allocations: 1.787 MB / 0.5436 GB, free: 58.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.4158, allocations: 55.8 kB / 0.5436 GB, free: 58.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009687/0.4168, allocations: 1.464 MB / 0.5451 GB, free: 57.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000334/0.4171, allocations: 0.497 MB / 0.5456 GB, free: 56.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004652/0.4176, allocations: 347.3 kB / 0.5459 GB, free: 56.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.883e-05/0.4176, allocations: 302.2 kB / 0.5462 GB, free: 56.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.4187, allocations: 0.694 MB / 0.5469 GB, free: 56.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.42, allocations: 1.346 MB / 0.5482 GB, free: 55.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002529/0.4225, allocations: 2.114 MB / 0.5502 GB, free: 53.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/0.4226, allocations: 6.469 kB / 0.5502 GB, free: 53.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004727/0.4273, allocations: 2.645 MB / 0.5528 GB, free: 52.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.4273, allocations: 13.88 kB / 0.5528 GB, free: 52.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.4274, allocations: 19.78 kB / 0.5529 GB, free: 52.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008858/0.4283, allocations: 364.9 kB / 0.5532 GB, free: 52.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.4295, allocations: 399.6 kB / 0.5536 GB, free: 52.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006149/0.4357, allocations: 8.445 MB / 0.5618 GB, free: 45.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.4376, allocations: 94.41 kB / 0.5619 GB, free: 45.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/0.4377, allocations: 83.86 kB / 0.562 GB, free: 45.07 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.001897/0.4396, allocations: 1.035 MB / 0.563 GB, free: 44.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/0.4401, allocations: 197.4 kB / 0.5632 GB, free: 44.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00353/0.4436, allocations: 2.338 MB / 0.5655 GB, free: 42.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.4437, allocations: 14.31 kB / 0.5655 GB, free: 42.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.4437, allocations: 11.44 kB / 0.5655 GB, free: 42.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.4437, allocations: 7.969 kB / 0.5655 GB, free: 42.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007938/0.4517, allocations: 5.131 MB / 0.5705 GB, free: 38.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.4517, allocations: 4 kB / 0.5705 GB, free: 38.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007683/0.4525, allocations: 171.8 kB / 0.5707 GB, free: 38.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/0.4538, allocations: 0.5301 MB / 0.5712 GB, free: 38.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001605/0.454, allocations: 39.98 kB / 0.5712 GB, free: 38.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009478/0.4635, allocations: 13.26 MB / 0.5842 GB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.4636, allocations: 9.219 kB / 0.5842 GB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004702/0.4683, allocations: 3.282 MB / 0.5874 GB, free: 20.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009622/0.4693, allocations: 426.6 kB / 0.5878 GB, free: 20.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005346/0.4698, allocations: 43.92 kB / 0.5879 GB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.471, allocations: 70.69 kB / 0.5879 GB, free: 20.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002807/0.4713, allocations: 105.2 kB / 0.588 GB, free: 20.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.532e-05/0.4713, allocations: 40.92 kB / 0.5881 GB, free: 20.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001714/0.4731, allocations: 1.227 MB / 0.5893 GB, free: 18.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4731, allocations: 0 / 0.5893 GB, free: 18.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002384/0.4755, allocations: 0.5977 MB / 0.5898 GB, free: 18.32 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.004671/0.4802, allocations: 3.9 MB / 0.5937 GB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004614/0.4848, allocations: 2.823 MB / 0.5964 GB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.4848, allocations: 0 / 0.5964 GB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002114/0.4869, allocations: 1.769 MB / 0.5981 GB, free: 9.617 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002793/0.4897, allocations: 0.5595 MB / 0.5987 GB, free: 9.078 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04385/0.5336, allocations: 24.45 MB / 0.6226 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002547/0.5362, allocations: 2.343 MB / 0.6248 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001492/0.5377, allocations: 409.3 kB / 0.6252 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00148/0.5392, allocations: 1.148 MB / 0.6264 GB, free: 10.8 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5392, allocations: 0 / 0.6264 GB, free: 10.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09798/0.6372, allocations: 53.64 MB / 0.6787 GB, free: 5.586 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.6374, allocations: 216.1 kB / 0.679 GB, free: 5.332 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.906/3.543, allocations: 0 / 0.679 GB, free: 5.332 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)