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.009752/0.009752, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.477/1.477, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001723/0.001723, allocations: 188.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03467/0.03467, allocations: 8.789 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002712/0.002712, allocations: 83.86 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1559, allocations: 51.56 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01599/0.1719, allocations: 13.14 MB / 0.5157 GB, free: 12.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009678/0.1816, allocations: 4.333 MB / 0.52 GB, free: 8.449 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002905/0.1846, allocations: 83.69 kB / 0.5201 GB, free: 8.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003592/0.1882, allocations: 1.029 MB / 0.5211 GB, free: 7.332 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005006/0.1933, allocations: 1.289 MB / 0.5223 GB, free: 6.035 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.196, allocations: 0.8492 MB / 0.5231 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006118/0.2022, allocations: 4.035 MB / 0.5271 GB, free: 1.129 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2996/0.5017, allocations: 3.518 MB / 0.5305 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003034/0.5048, allocations: 1.932 MB / 0.5324 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002826/0.5077, allocations: 2.131 MB / 0.5345 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009819/0.5087, allocations: 0.5256 MB / 0.535 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.5103, allocations: 0.7249 MB / 0.5357 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009321/0.5112, allocations: 1.148 MB / 0.5368 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002405/0.5136, allocations: 2.176 MB / 0.539 GB, free: 3.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009564/0.5232, allocations: 6.891 MB / 0.5457 GB, free: 3.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.5232, allocations: 0 / 0.5457 GB, free: 3.168 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.5232, allocations: 0.5312 kB / 0.5457 GB, free: 3.168 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001997/0.5234, allocations: 0 / 0.5457 GB, free: 3.168 MB / 366.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.01487/0.5383, allocations: 4.444 MB / 0.55 GB, free: 1.574 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.5384, allocations: 10.91 kB / 0.55 GB, free: 1.574 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00105/0.5394, allocations: 0.5102 MB / 0.5505 GB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00455/0.544, allocations: 0.8236 MB / 0.5513 GB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005142/0.5491, allocations: 2.475 MB / 0.5538 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002633/0.5494, allocations: 249.7 kB / 0.554 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007587/0.5502, allocations: 336.7 kB / 0.5543 GB, free: 496 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/0.5606, allocations: 4.518 MB / 0.5587 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-05/0.5607, allocations: 5.047 kB / 0.5587 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003897/0.5611, allocations: 133 kB / 0.5589 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000197/0.5613, allocations: 158.2 kB / 0.559 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007129/0.5684, allocations: 3.812 MB / 0.5627 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02394/0.5924, allocations: 14.03 MB / 0.5764 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006678/0.5991, allocations: 6.157 MB / 0.5824 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002168/0.6013, allocations: 1.176 MB / 0.5836 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006/0.6073, allocations: 3.303 MB / 0.5868 GB, free: 4.988 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.6074, allocations: 47.56 kB / 0.5869 GB, free: 4.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 2.665e-06/0.6074, allocations: 0 / 0.5869 GB, free: 4.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01126/0.6186, allocations: 5.22 MB / 0.592 GB, free: 15.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.6187, allocations: 72.34 kB / 0.592 GB, free: 15.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003203/0.6219, allocations: 1.682 MB / 0.5937 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.622, allocations: 45.7 kB / 0.5937 GB, free: 13.72 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.6232, allocations: 1.495 MB / 0.5952 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003991/0.6237, allocations: 419.6 kB / 0.5956 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004912/0.6242, allocations: 287.3 kB / 0.5958 GB, free: 11.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.6243, allocations: 301.1 kB / 0.5961 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.6254, allocations: 0.6246 MB / 0.5967 GB, free: 10.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.6268, allocations: 1.134 MB / 0.5979 GB, free: 9.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002629/0.6295, allocations: 1.872 MB / 0.5997 GB, free: 7.219 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-05/0.6295, allocations: 7.938 kB / 0.5997 GB, free: 7.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003734/0.6332, allocations: 2.19 MB / 0.6018 GB, free: 5.082 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.6333, allocations: 13.56 kB / 0.6018 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.073e-05/0.6333, allocations: 16 kB / 0.6019 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004047/0.6337, allocations: 138.5 kB / 0.602 GB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.6352, allocations: 392.1 kB / 0.6024 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003222/0.6385, allocations: 3.367 MB / 0.6056 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.64, allocations: 67.97 kB / 0.6057 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/0.6402, allocations: 72.09 kB / 0.6058 GB, free: 0.7891 MB / 414.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.002389/0.6426, allocations: 1.047 MB / 0.6068 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004554/0.643, allocations: 177.8 kB / 0.607 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004046/0.6471, allocations: 2.045 MB / 0.609 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.6471, allocations: 12 kB / 0.609 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-05/0.6472, allocations: 11.94 kB / 0.609 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.6472, allocations: 7.984 kB / 0.609 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.6575, allocations: 4.787 MB / 0.6137 GB, free: 8.613 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.6576, allocations: 3.938 kB / 0.6137 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007393/0.6583, allocations: 159.8 kB / 0.6138 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.6596, allocations: 442.1 kB / 0.6143 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.6597, allocations: 35.98 kB / 0.6143 GB, free: 7.984 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/0.6709, allocations: 11.06 MB / 0.6251 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.671, allocations: 0 / 0.6251 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004897/0.6759, allocations: 2.874 MB / 0.6279 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.6769, allocations: 394.7 kB / 0.6283 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005572/0.6775, allocations: 27.98 kB / 0.6283 GB, free: 8.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.6787, allocations: 59.95 kB / 0.6284 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/0.679, allocations: 103.6 kB / 0.6285 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.587e-05/0.6791, allocations: 32 kB / 0.6285 GB, free: 8.723 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002776/0.6819, allocations: 1.15 MB / 0.6296 GB, free: 7.578 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6819, allocations: 0 / 0.6296 GB, free: 7.578 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003292/0.6852, allocations: 0.543 MB / 0.6301 GB, free: 7.035 MB / 446.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.005319/0.6906, allocations: 3.478 MB / 0.6335 GB, free: 3.496 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003198/0.6938, allocations: 1.837 MB / 0.6353 GB, free: 1.668 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6938, allocations: 0 / 0.6353 GB, free: 1.668 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002393/0.6962, allocations: 1.498 MB / 0.6368 GB, free: 124 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003166/0.6994, allocations: 0.5344 MB / 0.6373 GB, free: 15.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03742/0.7368, allocations: 18.87 MB / 0.6557 GB, free: 12.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004176/0.741, allocations: 2.366 MB / 0.6581 GB, free: 9.734 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001486/0.7425, allocations: 384.1 kB / 0.6584 GB, free: 9.355 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001881/0.7444, allocations: 1.155 MB / 0.6595 GB, free: 8.199 MB / 478.1 MB Notification: Performance of SimCode: time 1.503e-06/0.7445, allocations: 0 / 0.6595 GB, free: 8.199 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1156/0.86, allocations: 51.23 MB / 0.7096 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.79, allocations: 7.844 kB / 0.7096 GB, free: 5.367 MB / 0.5137 GB (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)