Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.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_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",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.0009008/0.0009008, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.344/1.344, allocations: 223.2 MB / 239 MB, free: 5.445 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.001155/0.001155, allocations: 168.6 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03306/0.03306, allocations: 8.785 MB / 350.2 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003736, allocations: 12.09 kB / 413.3 MB, free: 42.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.09957, allocations: 52.56 MB / 465.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01175/0.1114, allocations: 11.56 MB / 477.4 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007487/0.1189, allocations: 4.024 MB / 481.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.1206, allocations: 79.62 kB / 481.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.1226, allocations: 0.7691 MB / 482.3 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002724/0.1253, allocations: 1.049 MB / 483.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.1268, allocations: 0.5925 MB / 483.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004346/0.1311, allocations: 4.027 MB / 487.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002782/0.1339, allocations: 2.444 MB / 490.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001759/0.1357, allocations: 1.296 MB / 491.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001954/0.1377, allocations: 1.63 MB / 493.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003303/0.138, allocations: 216 kB / 493.5 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009299/0.1389, allocations: 395.8 kB / 493.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006263/0.1396, allocations: 0.7668 MB / 494.7 MB, free: 396 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007951/0.1404, allocations: 0.7461 MB / 495.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005031/0.1454, allocations: 5.645 MB / 0.4893 GB, free: 9.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1454, allocations: 4 kB / 0.4893 GB, free: 9.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1454, allocations: 4 kB / 0.4893 GB, free: 9.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001581/0.1456, allocations: 0 / 0.4893 GB, free: 9.965 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: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.00867/0.1543, allocations: 3.798 MB / 0.493 GB, free: 6.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.1543, allocations: 12.03 kB / 0.493 GB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001004/0.1554, allocations: 0.511 MB / 0.4935 GB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004138/0.1595, allocations: 0.8309 MB / 0.4944 GB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004121/0.1636, allocations: 2.313 MB / 0.4966 GB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.1638, allocations: 250.7 kB / 0.4969 GB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005036/0.1643, allocations: 335.9 kB / 0.4972 GB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007622/0.172, allocations: 4.492 MB / 0.5016 GB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.926e-05/0.1721, allocations: 4 kB / 0.5016 GB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003084/0.1724, allocations: 132 kB / 0.5017 GB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001588/0.1726, allocations: 154.7 kB / 0.5018 GB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006678/0.1792, allocations: 3.813 MB / 0.5056 GB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01943/0.1987, allocations: 14.24 MB / 0.5195 GB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005731/0.2045, allocations: 6.145 MB / 0.5255 GB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.2063, allocations: 1.225 MB / 0.5267 GB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2386/0.445, allocations: 3.318 MB / 0.5299 GB, free: 62.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.445, allocations: 45.44 kB / 0.53 GB, free: 62.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.805e-06/0.4451, allocations: 0 / 0.53 GB, free: 62.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01006/0.4551, allocations: 5.324 MB / 0.5352 GB, free: 61.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.4552, allocations: 65.39 kB / 0.5352 GB, free: 61.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002809/0.458, allocations: 1.671 MB / 0.5368 GB, free: 61.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.993e-05/0.4581, allocations: 45.3 kB / 0.5369 GB, free: 61.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.4593, allocations: 1.497 MB / 0.5384 GB, free: 60.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003871/0.4597, allocations: 416.5 kB / 0.5388 GB, free: 60.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.81e-05/0.4597, allocations: 32.34 kB / 0.5388 GB, free: 60.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4599, allocations: 373.7 kB / 0.5391 GB, free: 59.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.4611, allocations: 0.625 MB / 0.5397 GB, free: 59.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.4624, allocations: 1.134 MB / 0.5409 GB, free: 59.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.4638, allocations: 0.8556 MB / 0.5417 GB, free: 59.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.4638, allocations: 7.719 kB / 0.5417 GB, free: 59.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00422/0.4681, allocations: 2.193 MB / 0.5438 GB, free: 58.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.4681, allocations: 11.78 kB / 0.5439 GB, free: 58.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/0.4681, allocations: 16.91 kB / 0.5439 GB, free: 58.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004121/0.4686, allocations: 139.6 kB / 0.544 GB, free: 58.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.4701, allocations: 400.3 kB / 0.5444 GB, free: 58.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/0.4723, allocations: 3.085 MB / 0.5474 GB, free: 56.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.4736, allocations: 76.67 kB / 0.5475 GB, free: 56.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.4738, allocations: 74.86 kB / 0.5475 GB, free: 56.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 193 * 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: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001868/0.4756, allocations: 1.044 MB / 0.5486 GB, free: 55.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.4759, allocations: 180.3 kB / 0.5487 GB, free: 55.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003361/0.4793, allocations: 2.062 MB / 0.5507 GB, free: 54.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.4793, allocations: 16.25 kB / 0.5508 GB, free: 54.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.4793, allocations: 7.406 kB / 0.5508 GB, free: 54.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.4794, allocations: 8.203 kB / 0.5508 GB, free: 54.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006292/0.4856, allocations: 4.793 MB / 0.5555 GB, free: 52.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.4857, allocations: 8.156 kB / 0.5555 GB, free: 52.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006478/0.4863, allocations: 165.2 kB / 0.5556 GB, free: 52.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009673/0.4873, allocations: 441.7 kB / 0.556 GB, free: 51.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.4874, allocations: 40.38 kB / 0.5561 GB, free: 51.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007302/0.4947, allocations: 10.09 MB / 0.5659 GB, free: 43.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.4947, allocations: 7.953 kB / 0.5659 GB, free: 43.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003845/0.4986, allocations: 2.872 MB / 0.5687 GB, free: 41.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006429/0.4993, allocations: 389.7 kB / 0.5691 GB, free: 41.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.4995, allocations: 31.89 kB / 0.5691 GB, free: 41.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006877/0.5002, allocations: 73.72 kB / 0.5692 GB, free: 40.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.5004, allocations: 99.98 kB / 0.5693 GB, free: 40.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-05/0.5004, allocations: 35.36 kB / 0.5693 GB, free: 40.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00153/0.502, allocations: 1.139 MB / 0.5705 GB, free: 40.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.502, allocations: 1.031 kB / 0.5705 GB, free: 40.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001964/0.504, allocations: 0.5462 MB / 0.571 GB, free: 40.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (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,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(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.003773/0.5078, allocations: 3.476 MB / 0.5744 GB, free: 36.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00247/0.5102, allocations: 1.848 MB / 0.5762 GB, free: 34.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5103, allocations: 192 / 0.5762 GB, free: 34.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.512, allocations: 1.491 MB / 0.5776 GB, free: 33.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002212/0.5142, allocations: 0.5229 MB / 0.5782 GB, free: 32.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02918/0.5434, allocations: 15.77 MB / 0.5936 GB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002529/0.546, allocations: 2.365 MB / 0.5959 GB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001533/0.5475, allocations: 392 kB / 0.5962 GB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/0.549, allocations: 1.144 MB / 0.5974 GB, free: 12 MB / 366.1 MB Notification: Performance of SimCode: time 1.583e-06/0.549, allocations: 0 / 0.5974 GB, free: 12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08526/0.6343, allocations: 46.99 MB / 0.6432 GB, free: 13.41 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/0.6346, allocations: 211 kB / 0.6434 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/3.299, allocations: 0 / 0.6434 GB, free: 13.16 MB / 414.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2_fmu --startTime=0 --stopTime=3.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1) Environment - environmentSimulation: