Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",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.00122/0.001219, allocations: 108 kB / 15.61 MB, free: 152 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.399/1.399, 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.001326/0.001326, allocations: 192.2 kB / 289.6 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.03605/0.03605, allocations: 8.796 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 78.08 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1263, allocations: 51.57 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.0228/0.1492, allocations: 13.13 MB / 475.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.1615, allocations: 4.345 MB / 480.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003354/0.1649, allocations: 83.69 kB / 480.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004659/0.1695, allocations: 1.025 MB / 481.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006702/0.1763, allocations: 1.281 MB / 482.6 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003581/0.1799, allocations: 0.8506 MB / 483.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008256/0.1882, allocations: 4.025 MB / 487.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008014/0.1963, allocations: 3.518 MB / 491 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004166/0.2005, allocations: 1.916 MB / 492.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005281/0.2058, allocations: 2.117 MB / 495 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001976/0.2078, allocations: 0.5312 MB / 495.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003434/0.2112, allocations: 0.7341 MB / 496.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002175/0.2134, allocations: 1.141 MB / 497.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004843/0.2183, allocations: 2.178 MB / 499.6 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.2298, allocations: 6.839 MB / 0.4946 GB, free: 2.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.2298, allocations: 0 / 0.4946 GB, free: 2.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2298, allocations: 0 / 0.4946 GB, free: 2.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002044/0.23, allocations: 0 / 0.4946 GB, free: 2.348 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.01944/0.2495, allocations: 4.442 MB / 0.4989 GB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.2496, allocations: 12.03 kB / 0.4989 GB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001931/0.2515, allocations: 0.5189 MB / 0.4994 GB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00837/0.2599, allocations: 0.828 MB / 0.5003 GB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006101/0.266, allocations: 2.399 MB / 0.5026 GB, free: 10 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003282/0.2664, allocations: 251.1 kB / 0.5028 GB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001263/0.2677, allocations: 339.8 kB / 0.5032 GB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.2778, allocations: 4.512 MB / 0.5076 GB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.2779, allocations: 7.891 kB / 0.5076 GB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005874/0.2785, allocations: 132 kB / 0.5077 GB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.2787, allocations: 158.7 kB / 0.5079 GB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007521/0.2862, allocations: 3.817 MB / 0.5116 GB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0235/0.3097, allocations: 14.21 MB / 0.5255 GB, free: 2.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.179/0.4888, allocations: 6.129 MB / 0.5314 GB, free: 59.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002229/0.4911, allocations: 1.204 MB / 0.5326 GB, free: 59.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005509/0.4966, allocations: 3.318 MB / 0.5359 GB, free: 58.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.4966, allocations: 41.86 kB / 0.5359 GB, free: 58.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.547e-06/0.4967, allocations: 0 / 0.5359 GB, free: 58.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.00976/0.5064, allocations: 5.233 MB / 0.541 GB, free: 57.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.5065, allocations: 64.33 kB / 0.5411 GB, free: 57.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002432/0.5089, allocations: 1.689 MB / 0.5427 GB, free: 56.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.17e-05/0.509, allocations: 45.58 kB / 0.5428 GB, free: 56.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008746/0.5099, allocations: 1.494 MB / 0.5442 GB, free: 56.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.5102, allocations: 418.9 kB / 0.5446 GB, free: 55.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003922/0.5106, allocations: 293.7 kB / 0.5449 GB, free: 55.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.822e-05/0.5106, allocations: 304.7 kB / 0.5452 GB, free: 55.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009525/0.5116, allocations: 0.6189 MB / 0.5458 GB, free: 55.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.5127, allocations: 1.137 MB / 0.5469 GB, free: 54.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.5149, allocations: 1.862 MB / 0.5487 GB, free: 53.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.5149, allocations: 11.22 kB / 0.5487 GB, free: 53.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003289/0.5182, allocations: 2.185 MB / 0.5509 GB, free: 52.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.5183, allocations: 12.72 kB / 0.5509 GB, free: 52.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.051e-05/0.5183, allocations: 19.31 kB / 0.5509 GB, free: 52.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003902/0.5187, allocations: 134.8 kB / 0.551 GB, free: 52.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.5202, allocations: 397.6 kB / 0.5514 GB, free: 52.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.5224, allocations: 3.356 MB / 0.5547 GB, free: 49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.5236, allocations: 77.97 kB / 0.5548 GB, free: 48.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.5237, allocations: 78.12 kB / 0.5548 GB, free: 48.95 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.001605/0.5254, allocations: 1.035 MB / 0.5558 GB, free: 48.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.5256, allocations: 184.5 kB / 0.556 GB, free: 48.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002919/0.5285, allocations: 2.049 MB / 0.558 GB, free: 47.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.5286, allocations: 11.84 kB / 0.558 GB, free: 47.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.5286, allocations: 8.938 kB / 0.558 GB, free: 47.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.5286, allocations: 3.797 kB / 0.558 GB, free: 47.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005925/0.5345, allocations: 4.779 MB / 0.5627 GB, free: 44.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5345, allocations: 2.094 kB / 0.5627 GB, free: 44.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006868/0.5352, allocations: 160.1 kB / 0.5629 GB, free: 44.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009694/0.5362, allocations: 453.2 kB / 0.5633 GB, free: 44.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-05/0.5363, allocations: 36.11 kB / 0.5633 GB, free: 44.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007315/0.5436, allocations: 11.08 MB / 0.5742 GB, free: 34.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.5436, allocations: 0 / 0.5742 GB, free: 34.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003677/0.5473, allocations: 2.869 MB / 0.577 GB, free: 31.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005687/0.5479, allocations: 394.8 kB / 0.5773 GB, free: 31.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000217/0.5481, allocations: 32 kB / 0.5774 GB, free: 31.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007921/0.5489, allocations: 59.95 kB / 0.5774 GB, free: 31.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.5491, allocations: 105.6 kB / 0.5775 GB, free: 31.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.189e-05/0.5492, allocations: 35.98 kB / 0.5776 GB, free: 31.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001294/0.5505, allocations: 1.147 MB / 0.5787 GB, free: 30.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5505, allocations: 4 kB / 0.5787 GB, free: 30.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001729/0.5522, allocations: 0.5455 MB / 0.5792 GB, free: 29.59 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.003753/0.556, allocations: 3.465 MB / 0.5826 GB, free: 26.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003325/0.5593, allocations: 2.117 MB / 0.5847 GB, free: 23.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5594, allocations: 1.875 kB / 0.5847 GB, free: 23.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.5611, allocations: 1.49 MB / 0.5861 GB, free: 22.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.5631, allocations: 0.5341 MB / 0.5866 GB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02221/0.5853, allocations: 20.94 MB / 0.6071 GB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002044/0.5874, allocations: 2.362 MB / 0.6094 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001345/0.5887, allocations: 384.1 kB / 0.6098 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/0.5901, allocations: 1.148 MB / 0.6109 GB, free: 11.39 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.5901, allocations: 0 / 0.6109 GB, free: 11.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09485/0.6849, allocations: 49.8 MB / 0.6595 GB, free: 9.941 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/11.01, allocations: 7.859 kB / 0.6595 GB, free: 9.934 MB / 430.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)