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.0009447/0.0009446, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.322/1.322, allocations: 223.2 MB / 238.9 MB, free: 5.48 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.001073/0.001073, allocations: 193 kB / 290.2 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03252/0.03252, allocations: 8.787 MB / 350 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.0004462, allocations: 16.17 kB / 413.2 MB, free: 43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1185, allocations: 52.56 MB / 465.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01237/0.1309, allocations: 10.59 MB / 476.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008484/0.1395, allocations: 4.103 MB / 480.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.1417, allocations: 71.69 kB / 480.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002801/0.1445, allocations: 0.8164 MB / 481.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004513/0.1491, allocations: 1.124 MB / 482.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002152/0.1513, allocations: 0.6075 MB / 483 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00572/0.157, allocations: 2.777 MB / 485.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003309/0.1603, allocations: 2.445 MB / 488.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002362/0.1627, allocations: 1.273 MB / 489.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002556/0.1653, allocations: 1.463 MB / 491 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005338/0.1659, allocations: 212 kB / 491.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001367/0.1672, allocations: 379.7 kB / 491.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006711/0.1679, allocations: 0.7281 MB / 492.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.1689, allocations: 0.7577 MB / 493.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005947/0.1749, allocations: 5.606 MB / 498.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1749, allocations: 0 / 498.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.175, allocations: 0 / 498.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001909/0.1751, allocations: 0 / 498.7 MB, free: 12.35 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.01041/0.1856, allocations: 3.779 MB / 0.4907 GB, free: 8.504 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1856, allocations: 12.02 kB / 0.4907 GB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001457/0.1871, allocations: 0.511 MB / 0.4912 GB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004399/0.1915, allocations: 0.8348 MB / 0.492 GB, free: 7.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005096/0.1966, allocations: 2.333 MB / 0.4943 GB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.1969, allocations: 250.7 kB / 0.4945 GB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007645/0.1976, allocations: 339.9 kB / 0.4948 GB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007912/0.2055, allocations: 4.461 MB / 0.4992 GB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.493e-05/0.2057, allocations: 3.984 kB / 0.4992 GB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002966/0.206, allocations: 143.9 kB / 0.4993 GB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001494/0.2061, allocations: 158.7 kB / 0.4995 GB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006805/0.2129, allocations: 3.809 MB / 0.5032 GB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02541/0.2384, allocations: 14.2 MB / 0.5171 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006929/0.2454, allocations: 6.141 MB / 0.5231 GB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0062/0.2516, allocations: 2.94 MB / 0.5259 GB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.2517, allocations: 51.56 kB / 0.526 GB, free: 2.891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 3.517e-06/0.2517, allocations: 4 kB / 0.526 GB, free: 2.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.2778/0.5295, allocations: 5.375 MB / 0.5312 GB, free: 63.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.708e-05/0.5296, allocations: 63.97 kB / 0.5313 GB, free: 63.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.5321, allocations: 1.63 MB / 0.5329 GB, free: 63.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.5322, allocations: 47.08 kB / 0.5329 GB, free: 62.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/0.5331, allocations: 1.474 MB / 0.5344 GB, free: 62.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003406/0.5335, allocations: 442.1 kB / 0.5348 GB, free: 61.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.299e-05/0.5336, allocations: 38.34 kB / 0.5348 GB, free: 61.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.5337, allocations: 370.5 kB / 0.5352 GB, free: 61.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.5349, allocations: 0.6494 MB / 0.5358 GB, free: 61.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.5363, allocations: 1.138 MB / 0.5369 GB, free: 61.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.5378, allocations: 0.8633 MB / 0.5378 GB, free: 61.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.5378, allocations: 5.188 kB / 0.5378 GB, free: 61.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=207) (initialization): time 0.003983/0.5418, allocations: 2.234 MB / 0.54 GB, free: 60.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.5418, allocations: 12.47 kB / 0.54 GB, free: 60.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/0.5419, allocations: 15.62 kB / 0.54 GB, free: 60.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004063/0.5423, allocations: 136.2 kB / 0.5401 GB, free: 60.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.5438, allocations: 405.7 kB / 0.5405 GB, free: 60.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.546, allocations: 3.111 MB / 0.5435 GB, free: 58.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.5475, allocations: 80.06 kB / 0.5436 GB, free: 58.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.5476, allocations: 69.11 kB / 0.5437 GB, free: 58.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (200): * Single equations (assignments): 197 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00249/0.5501, allocations: 1.042 MB / 0.5447 GB, free: 57.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004164/0.5505, allocations: 177.8 kB / 0.5449 GB, free: 57.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004077/0.5546, allocations: 2.127 MB / 0.547 GB, free: 56.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.5547, allocations: 12.7 kB / 0.547 GB, free: 56.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.5547, allocations: 7.203 kB / 0.547 GB, free: 56.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.5547, allocations: 5.719 kB / 0.547 GB, free: 56.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00839/0.5631, allocations: 4.867 MB / 0.5517 GB, free: 54.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.5631, allocations: 1.688 kB / 0.5517 GB, free: 54.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008919/0.564, allocations: 184.3 kB / 0.5519 GB, free: 54.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.5651, allocations: 442 kB / 0.5523 GB, free: 54.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.858e-05/0.5652, allocations: 39.69 kB / 0.5524 GB, free: 54.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007524/0.5727, allocations: 10.22 MB / 0.5623 GB, free: 45.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5728, allocations: 3.094 kB / 0.5624 GB, free: 45.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004532/0.5773, allocations: 3.068 MB / 0.5653 GB, free: 43.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009029/0.5782, allocations: 398.4 kB / 0.5657 GB, free: 43.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002007/0.5784, allocations: 33.27 kB / 0.5658 GB, free: 43.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007699/0.5792, allocations: 70.73 kB / 0.5658 GB, free: 43.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.5795, allocations: 97.7 kB / 0.5659 GB, free: 43.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.75e-05/0.5796, allocations: 39.48 kB / 0.566 GB, free: 43.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001591/0.5812, allocations: 1.109 MB / 0.567 GB, free: 42.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5812, allocations: 4 kB / 0.567 GB, free: 42.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002168/0.5833, allocations: 0.5499 MB / 0.5676 GB, free: 42.77 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 (87): * Single equations (assignments): 82 * 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%) 8,(1,100.0%) 1,(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.004198/0.5876, allocations: 4.051 MB / 0.5715 GB, free: 39.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002785/0.5904, allocations: 1.901 MB / 0.5734 GB, free: 37.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5904, allocations: 2.906 kB / 0.5734 GB, free: 37.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.5923, allocations: 1.531 MB / 0.5749 GB, free: 36.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/0.5948, allocations: 0.4915 MB / 0.5754 GB, free: 35.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03111/0.6259, allocations: 26.01 MB / 0.6008 GB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002427/0.6284, allocations: 2.421 MB / 0.6031 GB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001599/0.63, allocations: 392.1 kB / 0.6035 GB, free: 5.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/0.6314, allocations: 1.136 MB / 0.6046 GB, free: 4.602 MB / 366.1 MB Notification: Performance of SimCode: time 1.382e-06/0.6314, allocations: 4 kB / 0.6046 GB, free: 4.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07583/0.7072, allocations: 46.75 MB / 0.6503 GB, free: 6.246 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.7075, allocations: 198.8 kB / 0.6505 GB, free: 6.004 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.639/3.347, allocations: 0 / 0.6505 GB, free: 6.004 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: