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-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_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.001229/0.001229, allocations: 108 kB / 15.6 MB, free: 132 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.433/1.433, allocations: 222.9 MB / 239.3 MB, free: 4.551 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.001445/0.001444, allocations: 184.5 kB / 289.6 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03469/0.03469, allocations: 8.796 MB / 348.5 MB, free: 4.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 77.47 kB / 411.2 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07611/0.07785, allocations: 51.57 MB / 462.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.0144/0.09231, allocations: 13.14 MB / 475.9 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00804/0.1004, allocations: 4.341 MB / 480.2 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001605/0.102, allocations: 91.56 kB / 480.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002504/0.1045, allocations: 1.017 MB / 481.3 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003378/0.108, allocations: 1.281 MB / 482.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.1098, allocations: 0.8569 MB / 483.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00408/0.1139, allocations: 4.028 MB / 487.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003852/0.1177, allocations: 3.525 MB / 491 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002425/0.1202, allocations: 1.916 MB / 493 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002578/0.1228, allocations: 2.121 MB / 495.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007053/0.1235, allocations: 0.5273 MB / 495.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.1248, allocations: 0.7302 MB / 496.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009154/0.1257, allocations: 1.141 MB / 497.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002197/0.1279, allocations: 2.182 MB / 499.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005793/0.1338, allocations: 6.839 MB / 0.4946 GB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1338, allocations: 0 / 0.4946 GB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1338, allocations: 0 / 0.4946 GB, free: 2.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001043/0.1339, allocations: 0 / 0.4946 GB, free: 2.191 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.01044/0.1443, allocations: 4.446 MB / 0.499 GB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.1444, allocations: 8.031 kB / 0.499 GB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008468/0.1452, allocations: 0.5188 MB / 0.4995 GB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004375/0.1496, allocations: 0.8241 MB / 0.5003 GB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004132/0.1538, allocations: 2.403 MB / 0.5026 GB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.154, allocations: 251.1 kB / 0.5029 GB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005377/0.1545, allocations: 335.8 kB / 0.5032 GB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007674/0.1622, allocations: 4.512 MB / 0.5076 GB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.409e-05/0.1623, allocations: 7.906 kB / 0.5076 GB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003013/0.1626, allocations: 132 kB / 0.5077 GB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.1627, allocations: 154.7 kB / 0.5079 GB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006346/0.1691, allocations: 3.813 MB / 0.5116 GB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02053/0.1896, allocations: 14.21 MB / 0.5255 GB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1665/0.3562, allocations: 6.131 MB / 0.5315 GB, free: 59.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/0.3583, allocations: 1.205 MB / 0.5326 GB, free: 59.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005101/0.3634, allocations: 3.306 MB / 0.5359 GB, free: 58.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.3635, allocations: 54.38 kB / 0.5359 GB, free: 58.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.975e-06/0.3635, allocations: 0 / 0.5359 GB, free: 58.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01006/0.3736, allocations: 5.234 MB / 0.541 GB, free: 57.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.3736, allocations: 64.09 kB / 0.5411 GB, free: 57.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002753/0.3764, allocations: 1.686 MB / 0.5427 GB, free: 56.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.102e-05/0.3765, allocations: 49.73 kB / 0.5428 GB, free: 56.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009155/0.3774, allocations: 1.491 MB / 0.5442 GB, free: 56.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/0.3777, allocations: 417.6 kB / 0.5446 GB, free: 55.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004373/0.3781, allocations: 288.3 kB / 0.5449 GB, free: 55.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.833e-05/0.3782, allocations: 310.8 kB / 0.5452 GB, free: 55.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.3792, allocations: 0.6259 MB / 0.5458 GB, free: 55.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.3804, allocations: 1.128 MB / 0.5469 GB, free: 54.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00229/0.3827, allocations: 1.869 MB / 0.5488 GB, free: 53.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.3828, allocations: 8.844 kB / 0.5488 GB, free: 53.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003331/0.3861, allocations: 2.191 MB / 0.5509 GB, free: 52.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.3861, allocations: 11.28 kB / 0.5509 GB, free: 52.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.3862, allocations: 16.31 kB / 0.5509 GB, free: 52.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003786/0.3866, allocations: 132.9 kB / 0.5511 GB, free: 52.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/0.3886, allocations: 392.8 kB / 0.5514 GB, free: 52.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002811/0.3914, allocations: 3.365 MB / 0.5547 GB, free: 48.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/0.3934, allocations: 73.39 kB / 0.5548 GB, free: 48.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002334/0.3937, allocations: 71.78 kB / 0.5549 GB, free: 48.88 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 (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0023/0.396, allocations: 1.042 MB / 0.5559 GB, free: 48.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004099/0.3964, allocations: 181.4 kB / 0.556 GB, free: 48.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003243/0.3997, allocations: 2.049 MB / 0.558 GB, free: 47.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.3997, allocations: 11.84 kB / 0.5581 GB, free: 47.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.3997, allocations: 7.906 kB / 0.5581 GB, free: 47.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.3997, allocations: 4.125 kB / 0.5581 GB, free: 47.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006687/0.4064, allocations: 4.779 MB / 0.5627 GB, free: 44.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.4065, allocations: 5.828 kB / 0.5627 GB, free: 44.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007296/0.4072, allocations: 170.3 kB / 0.5629 GB, free: 44.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.4083, allocations: 443.4 kB / 0.5633 GB, free: 44.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.4084, allocations: 35.45 kB / 0.5634 GB, free: 44.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007821/0.4163, allocations: 11.07 MB / 0.5742 GB, free: 34.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4163, allocations: 7.844 kB / 0.5742 GB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0039/0.4202, allocations: 2.871 MB / 0.577 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006962/0.4209, allocations: 394.8 kB / 0.5774 GB, free: 31.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.4211, allocations: 28 kB / 0.5774 GB, free: 31.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007666/0.4219, allocations: 63.95 kB / 0.5774 GB, free: 31.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.4221, allocations: 97.89 kB / 0.5775 GB, free: 31.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.086e-05/0.4222, allocations: 35.98 kB / 0.5776 GB, free: 31.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001359/0.4236, allocations: 1.154 MB / 0.5787 GB, free: 29.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4236, allocations: 3.938 kB / 0.5787 GB, free: 29.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00176/0.4253, allocations: 0.5455 MB / 0.5792 GB, free: 29.4 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.003867/0.4292, allocations: 3.466 MB / 0.5826 GB, free: 25.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00348/0.4327, allocations: 2.124 MB / 0.5847 GB, free: 23.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.4327, allocations: 0 / 0.5847 GB, free: 23.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001766/0.4345, allocations: 1.49 MB / 0.5861 GB, free: 22.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.4366, allocations: 0.5237 MB / 0.5867 GB, free: 21.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02518/0.4617, allocations: 20.95 MB / 0.6071 GB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002309/0.4641, allocations: 2.366 MB / 0.6094 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00154/0.4656, allocations: 384.1 kB / 0.6098 GB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001723/0.4674, allocations: 1.151 MB / 0.6109 GB, free: 11.17 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4674, allocations: 0 / 0.6109 GB, free: 11.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1002/0.5676, allocations: 49.81 MB / 0.6596 GB, free: 9.723 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.77, allocations: 6.672 kB / 0.6596 GB, free: 9.719 MB / 430.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/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)