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.007728/0.007728, allocations: 101.9 kB / 15.74 MB, free: 6.027 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.446/1.446, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001457/0.001457, allocations: 188.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03686/0.03686, allocations: 8.808 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 71.89 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.126, allocations: 51.57 MB / 0.5029 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01701/0.1431, allocations: 13.13 MB / 0.5157 GB, free: 12.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009997/0.1532, allocations: 4.333 MB / 0.52 GB, free: 8.445 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003584/0.1568, allocations: 91.56 kB / 0.5201 GB, free: 8.355 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004017/0.1608, allocations: 1.068 MB / 0.5211 GB, free: 7.281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007352/0.1682, allocations: 1.324 MB / 0.5224 GB, free: 5.949 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003596/0.1718, allocations: 0.8533 MB / 0.5232 GB, free: 5.098 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006653/0.1785, allocations: 4.035 MB / 0.5272 GB, free: 1.039 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2937/0.4722, allocations: 3.514 MB / 0.5306 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003707/0.476, allocations: 1.937 MB / 0.5325 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004631/0.4806, allocations: 2.126 MB / 0.5346 GB, free: 4.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001689/0.4823, allocations: 0.5252 MB / 0.5351 GB, free: 4.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002813/0.4852, allocations: 0.7232 MB / 0.5358 GB, free: 4.559 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.4866, allocations: 1.151 MB / 0.5369 GB, free: 4.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004018/0.4906, allocations: 2.175 MB / 0.539 GB, free: 3.898 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.5009, allocations: 6.907 MB / 0.5458 GB, free: 3.164 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.443e-06/0.5009, allocations: 0 / 0.5458 GB, free: 3.164 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5009, allocations: 0.5312 kB / 0.5458 GB, free: 3.164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002668/0.5012, allocations: 0.5312 kB / 0.5458 GB, free: 3.164 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.01844/0.5196, allocations: 4.534 MB / 0.5502 GB, free: 1.473 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.824e-05/0.5197, allocations: 9.656 kB / 0.5502 GB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001714/0.5215, allocations: 0.5199 MB / 0.5507 GB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004931/0.5264, allocations: 0.8425 MB / 0.5515 GB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006975/0.5334, allocations: 2.499 MB / 0.554 GB, free: 432 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000287/0.5337, allocations: 254 kB / 0.5542 GB, free: 424 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.5351, allocations: 329.3 kB / 0.5545 GB, free: 320 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/0.546, allocations: 4.517 MB / 0.559 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.011e-05/0.5461, allocations: 3.438 kB / 0.559 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003644/0.5465, allocations: 140 kB / 0.5591 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001628/0.5467, allocations: 161.1 kB / 0.5592 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0068/0.5535, allocations: 3.806 MB / 0.563 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02418/0.5777, allocations: 14.07 MB / 0.5767 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00688/0.5846, allocations: 6.14 MB / 0.5827 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002173/0.5868, allocations: 1.184 MB / 0.5839 GB, free: 8.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007229/0.5941, allocations: 3.299 MB / 0.5871 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.5941, allocations: 43.56 kB / 0.5871 GB, free: 4.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.035e-06/0.5941, allocations: 0 / 0.5871 GB, free: 4.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01172/0.6059, allocations: 5.28 MB / 0.5923 GB, free: 15.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.606, allocations: 64.41 kB / 0.5923 GB, free: 15.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/0.6094, allocations: 1.69 MB / 0.594 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001788/0.6096, allocations: 45.7 kB / 0.594 GB, free: 13.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.6107, allocations: 1.535 MB / 0.5955 GB, free: 11.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004086/0.6111, allocations: 434.4 kB / 0.5959 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004616/0.6116, allocations: 291.5 kB / 0.5962 GB, free: 11.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.6117, allocations: 301.1 kB / 0.5965 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.6128, allocations: 0.6254 MB / 0.5971 GB, free: 10.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/0.6143, allocations: 1.138 MB / 0.5982 GB, free: 8.941 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002763/0.6171, allocations: 1.862 MB / 0.6001 GB, free: 6.918 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.6171, allocations: 11.94 kB / 0.6001 GB, free: 6.906 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004181/0.6213, allocations: 2.196 MB / 0.6022 GB, free: 4.773 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.6214, allocations: 13.78 kB / 0.6022 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.237e-05/0.6214, allocations: 20 kB / 0.6022 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004315/0.6218, allocations: 130.5 kB / 0.6024 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.6234, allocations: 399.7 kB / 0.6027 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003273/0.6267, allocations: 3.37 MB / 0.606 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.6286, allocations: 75.91 kB / 0.6061 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.6288, allocations: 68 kB / 0.6062 GB, free: 488 kB / 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.00269/0.6315, allocations: 1.045 MB / 0.6072 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006407/0.6322, allocations: 182.8 kB / 0.6074 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00435/0.6365, allocations: 2.042 MB / 0.6094 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.6366, allocations: 12 kB / 0.6094 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.077e-05/0.6366, allocations: 11.94 kB / 0.6094 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.6366, allocations: 8.094 kB / 0.6094 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/0.647, allocations: 4.782 MB / 0.6141 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.6471, allocations: 8.188 kB / 0.6141 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007695/0.6478, allocations: 163.9 kB / 0.6142 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001286/0.6491, allocations: 444 kB / 0.6147 GB, free: 7.695 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.6493, allocations: 35.98 kB / 0.6147 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.6604, allocations: 11.07 MB / 0.6255 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.6605, allocations: 4.031 kB / 0.6255 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005263/0.6657, allocations: 2.874 MB / 0.6283 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/0.667, allocations: 399.8 kB / 0.6287 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003125/0.6673, allocations: 32 kB / 0.6287 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009006/0.6682, allocations: 59.95 kB / 0.6288 GB, free: 8.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002592/0.6685, allocations: 95.48 kB / 0.6289 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-05/0.6686, allocations: 36.11 kB / 0.6289 GB, free: 8.395 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001762/0.6703, allocations: 1.154 MB / 0.63 GB, free: 7.246 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6704, allocations: 0 / 0.63 GB, free: 7.246 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002319/0.6727, allocations: 0.5468 MB / 0.6306 GB, free: 6.699 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.005033/0.6777, allocations: 3.492 MB / 0.634 GB, free: 3.148 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.6809, allocations: 1.843 MB / 0.6358 GB, free: 1.316 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.6809, allocations: 0 / 0.6358 GB, free: 1.316 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.6832, allocations: 1.49 MB / 0.6372 GB, free: 15.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002726/0.6859, allocations: 0.5221 MB / 0.6377 GB, free: 15.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03127/0.7172, allocations: 19 MB / 0.6563 GB, free: 11.68 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002464/0.7197, allocations: 2.358 MB / 0.6586 GB, free: 9.297 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001462/0.7212, allocations: 388 kB / 0.659 GB, free: 8.914 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001584/0.7228, allocations: 1.148 MB / 0.6601 GB, free: 7.766 MB / 478.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7228, allocations: 4 kB / 0.6601 GB, free: 7.762 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1038/0.8267, allocations: 51 MB / 0.7099 GB, free: 5.168 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.95, allocations: 11.84 kB / 0.7099 GB, free: 5.156 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)