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.0007614/0.0007615, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.3/1.3, allocations: 223.3 MB / 239.4 MB, free: 5.484 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.001012/0.001012, allocations: 176.5 kB / 290.6 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03236/0.03236, allocations: 8.798 MB / 350.5 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003666, allocations: 14.52 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08436/0.08474, allocations: 52.56 MB / 466.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01383/0.0986, allocations: 12.34 MB / 478.8 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007774/0.1064, allocations: 4.232 MB / 483.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002408/0.1088, allocations: 79.69 kB / 483.1 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002769/0.1116, allocations: 0.894 MB / 484 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003822/0.1155, allocations: 1.166 MB / 485.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00213/0.1176, allocations: 0.7788 MB / 486 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005329/0.123, allocations: 4.299 MB / 490.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00412/0.1271, allocations: 2.904 MB / 493.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001982/0.1291, allocations: 1.326 MB / 494.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002617/0.1317, allocations: 1.692 MB / 496.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007134/0.1325, allocations: 212 kB / 496.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001516/0.134, allocations: 423.6 kB / 496.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.1351, allocations: 0.7783 MB / 497.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0029/0.138, allocations: 1.79 MB / 499.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006638/0.1447, allocations: 6.443 MB / 0.494 GB, free: 5.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1447, allocations: 4 kB / 0.494 GB, free: 5.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1447, allocations: 0 / 0.494 GB, free: 5.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001644/0.1449, allocations: 0 / 0.494 GB, free: 5.434 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.009234/0.1541, allocations: 3.752 MB / 0.4976 GB, free: 1.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1542, allocations: 12.03 kB / 0.4976 GB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008928/0.1551, allocations: 0.515 MB / 0.4982 GB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004269/0.1594, allocations: 0.8279 MB / 0.499 GB, free: 248 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003698/0.1631, allocations: 2.364 MB / 0.5013 GB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.1633, allocations: 259.1 kB / 0.5015 GB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004999/0.1638, allocations: 335.8 kB / 0.5018 GB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007515/0.1713, allocations: 4.519 MB / 0.5062 GB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-05/0.1714, allocations: 0 / 0.5062 GB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000342/0.1717, allocations: 148 kB / 0.5064 GB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000164/0.1719, allocations: 154.7 kB / 0.5065 GB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007348/0.1793, allocations: 3.829 MB / 0.5103 GB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02012/0.1994, allocations: 14.27 MB / 0.5242 GB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1721/0.3715, allocations: 6.145 MB / 0.5302 GB, free: 62.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002233/0.3738, allocations: 1.215 MB / 0.5314 GB, free: 62.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004529/0.3784, allocations: 3.321 MB / 0.5346 GB, free: 61.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.3784, allocations: 48 kB / 0.5347 GB, free: 61.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.655e-06/0.3784, allocations: 3.406 kB / 0.5347 GB, free: 61.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.009459/0.3879, allocations: 5.286 MB / 0.5398 GB, free: 60.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.3879, allocations: 64.06 kB / 0.5399 GB, free: 60.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002431/0.3904, allocations: 1.693 MB / 0.5416 GB, free: 59.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.49e-05/0.3905, allocations: 47.58 kB / 0.5416 GB, free: 59.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.3916, allocations: 1.494 MB / 0.5431 GB, free: 59.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003271/0.3919, allocations: 417.5 kB / 0.5435 GB, free: 58.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.3921, allocations: 130.7 kB / 0.5436 GB, free: 58.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.213e-05/0.3921, allocations: 305.1 kB / 0.5439 GB, free: 58.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.3932, allocations: 0.6351 MB / 0.5445 GB, free: 58.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.3944, allocations: 1.143 MB / 0.5456 GB, free: 57.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002245/0.3967, allocations: 1.895 MB / 0.5475 GB, free: 56.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.3967, allocations: 5.344 kB / 0.5475 GB, free: 56.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003424/0.4001, allocations: 2.201 MB / 0.5496 GB, free: 55.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.4002, allocations: 10.81 kB / 0.5496 GB, free: 55.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.61e-05/0.4002, allocations: 19.41 kB / 0.5497 GB, free: 55.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003526/0.4006, allocations: 136.8 kB / 0.5498 GB, free: 55.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.402, allocations: 399.5 kB / 0.5502 GB, free: 55.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.4039, allocations: 3.084 MB / 0.5532 GB, free: 52.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.4054, allocations: 88.75 kB / 0.5533 GB, free: 52.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/0.4055, allocations: 67.88 kB / 0.5533 GB, free: 52.51 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.001897/0.4074, allocations: 1.042 MB / 0.5543 GB, free: 51.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/0.4078, allocations: 188.3 kB / 0.5545 GB, free: 51.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003082/0.4108, allocations: 2.056 MB / 0.5565 GB, free: 50.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.4109, allocations: 11.78 kB / 0.5565 GB, free: 50.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4109, allocations: 7.906 kB / 0.5565 GB, free: 50.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.4109, allocations: 11.83 kB / 0.5566 GB, free: 50.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006174/0.4171, allocations: 4.805 MB / 0.5613 GB, free: 48.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4171, allocations: 0 / 0.5613 GB, free: 48.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006804/0.4178, allocations: 169.1 kB / 0.5614 GB, free: 48.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.4189, allocations: 441.3 kB / 0.5618 GB, free: 47.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-05/0.419, allocations: 37.95 kB / 0.5619 GB, free: 47.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007359/0.4263, allocations: 10.1 MB / 0.5717 GB, free: 38.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4264, allocations: 8.828 kB / 0.5717 GB, free: 38.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004027/0.4304, allocations: 2.886 MB / 0.5746 GB, free: 36.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007882/0.4312, allocations: 398.7 kB / 0.5749 GB, free: 36.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004006/0.4316, allocations: 35.92 kB / 0.575 GB, free: 35.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009729/0.4326, allocations: 67.95 kB / 0.575 GB, free: 35.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.4328, allocations: 92.86 kB / 0.5751 GB, free: 35.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.041e-05/0.4329, allocations: 35.98 kB / 0.5752 GB, free: 35.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001644/0.4346, allocations: 1.154 MB / 0.5763 GB, free: 34.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4346, allocations: 0 / 0.5763 GB, free: 34.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002137/0.4367, allocations: 0.5416 MB / 0.5768 GB, free: 34.09 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.004096/0.4408, allocations: 3.5 MB / 0.5802 GB, free: 30.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002587/0.4434, allocations: 1.856 MB / 0.5821 GB, free: 28.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4434, allocations: 0 / 0.5821 GB, free: 28.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001869/0.4453, allocations: 1.491 MB / 0.5835 GB, free: 27.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/0.4484, allocations: 0.5083 MB / 0.584 GB, free: 26.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03443/0.4828, allocations: 22.47 MB / 0.606 GB, free: 2.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002062/0.4849, allocations: 2.369 MB / 0.6083 GB, free: 84 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001483/0.4864, allocations: 384.1 kB / 0.6086 GB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/0.4879, allocations: 1.148 MB / 0.6098 GB, free: 14.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4879, allocations: 3.938 kB / 0.6098 GB, free: 14.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07434/0.5623, allocations: 47.95 MB / 0.6566 GB, free: 14.99 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.5625, allocations: 214.4 kB / 0.6568 GB, free: 14.74 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.723/3.286, allocations: 4 kB / 0.6568 GB, free: 14.73 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)