Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",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.0009254/0.0009255, allocations: 98.03 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.336/1.336, allocations: 223.3 MB / 239.4 MB, free: 5.41 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.0009703/0.0009707, allocations: 180.5 kB / 290.6 MB, free: 2.082 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03272/0.03272, allocations: 8.811 MB / 350.5 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003668, allocations: 11.17 kB / 413.9 MB, free: 42.69 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09023, allocations: 52.57 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.0126/0.1029, allocations: 12.78 MB / 479.3 MB, free: 188 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007766/0.1107, allocations: 4.341 MB / 483.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.1124, allocations: 71.75 kB / 483.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002164/0.1146, allocations: 0.8512 MB / 484.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003376/0.118, allocations: 1.17 MB / 485.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.12, allocations: 0.8108 MB / 486.5 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005407/0.1254, allocations: 4.375 MB / 490.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003074/0.1285, allocations: 2.639 MB / 493.5 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0021/0.1306, allocations: 1.334 MB / 494.9 MB, free: 488 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001833/0.1324, allocations: 1.664 MB / 496.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003015/0.1328, allocations: 208 kB / 496.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009726/0.1337, allocations: 411.6 kB / 497.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006095/0.1344, allocations: 0.7431 MB / 497.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001722/0.1361, allocations: 1.77 MB / 499.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005611/0.1417, allocations: 6.236 MB / 0.494 GB, free: 5.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1417, allocations: 0 / 0.494 GB, free: 5.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1417, allocations: 0 / 0.494 GB, free: 5.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001223/0.1419, allocations: 0 / 0.494 GB, free: 5.41 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.009549/0.1514, allocations: 3.72 MB / 0.4977 GB, free: 1.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1515, allocations: 8.031 kB / 0.4977 GB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007022/0.1522, allocations: 467.9 kB / 0.4981 GB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004226/0.1564, allocations: 0.8202 MB / 0.4989 GB, free: 324 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003861/0.1603, allocations: 2.334 MB / 0.5012 GB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.1605, allocations: 246.9 kB / 0.5014 GB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000506/0.161, allocations: 331.8 kB / 0.5017 GB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007141/0.1681, allocations: 4.322 MB / 0.506 GB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-05/0.1682, allocations: 11.89 kB / 0.506 GB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000288/0.1685, allocations: 128 kB / 0.5061 GB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.1687, allocations: 154.4 kB / 0.5062 GB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005871/0.1746, allocations: 3.598 MB / 0.5098 GB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01932/0.1939, allocations: 13.92 MB / 0.5233 GB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1896/0.3836, allocations: 6.621 MB / 0.5298 GB, free: 62.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003116/0.3867, allocations: 1.393 MB / 0.5312 GB, free: 62.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00624/0.393, allocations: 3.682 MB / 0.5348 GB, free: 62.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001475/0.3945, allocations: 0.9498 MB / 0.5357 GB, free: 62.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.336e-06/0.3945, allocations: 1 kB / 0.5357 GB, free: 62.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01191/0.4064, allocations: 6.025 MB / 0.5416 GB, free: 60.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.4065, allocations: 226 kB / 0.5418 GB, free: 60.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003107/0.4097, allocations: 1.787 MB / 0.5435 GB, free: 60.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.66e-05/0.4098, allocations: 56.58 kB / 0.5436 GB, free: 60.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.411, allocations: 1.463 MB / 0.545 GB, free: 59.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003554/0.4113, allocations: 0.4985 MB / 0.5455 GB, free: 58.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.4116, allocations: 161.2 kB / 0.5457 GB, free: 58.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.348e-05/0.4117, allocations: 302.1 kB / 0.546 GB, free: 58.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.4127, allocations: 0.6927 MB / 0.5466 GB, free: 58.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.4141, allocations: 1.359 MB / 0.548 GB, free: 57.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002573/0.4167, allocations: 2.122 MB / 0.55 GB, free: 55.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.4167, allocations: 4.719 kB / 0.55 GB, free: 55.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004048/0.4208, allocations: 2.649 MB / 0.5526 GB, free: 54.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.4208, allocations: 12.77 kB / 0.5526 GB, free: 54.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.4209, allocations: 23.78 kB / 0.5527 GB, free: 54.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008216/0.4217, allocations: 367.5 kB / 0.553 GB, free: 54.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.4229, allocations: 388 kB / 0.5534 GB, free: 54.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005739/0.4286, allocations: 7.738 MB / 0.5609 GB, free: 47.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.43, allocations: 99.94 kB / 0.561 GB, free: 47.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.4301, allocations: 83.77 kB / 0.5611 GB, free: 47.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001672/0.4318, allocations: 1.036 MB / 0.5621 GB, free: 47.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002114/0.432, allocations: 195.3 kB / 0.5623 GB, free: 46.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.4354, allocations: 2.34 MB / 0.5646 GB, free: 45.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.4354, allocations: 16.34 kB / 0.5646 GB, free: 45.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.4354, allocations: 7.938 kB / 0.5646 GB, free: 45.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.4355, allocations: 7.969 kB / 0.5646 GB, free: 45.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006002/0.4415, allocations: 5.141 MB / 0.5696 GB, free: 42.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.4415, allocations: 0.6875 kB / 0.5696 GB, free: 42.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006818/0.4422, allocations: 167.8 kB / 0.5698 GB, free: 41.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.4433, allocations: 0.5282 MB / 0.5703 GB, free: 41.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.18e-05/0.4434, allocations: 45.94 kB / 0.5704 GB, free: 41.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00835/0.4518, allocations: 12.13 MB / 0.5822 GB, free: 28.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4518, allocations: 4.031 kB / 0.5822 GB, free: 28.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004205/0.456, allocations: 3.289 MB / 0.5854 GB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006992/0.4567, allocations: 426.6 kB / 0.5858 GB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003715/0.4571, allocations: 43.16 kB / 0.5859 GB, free: 24.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009677/0.4581, allocations: 67.95 kB / 0.5859 GB, free: 24.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.4583, allocations: 117 kB / 0.586 GB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.11e-05/0.4584, allocations: 43.98 kB / 0.5861 GB, free: 24.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001828/0.4602, allocations: 1.215 MB / 0.5873 GB, free: 23.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4602, allocations: 0 / 0.5873 GB, free: 23.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002388/0.4626, allocations: 0.6002 MB / 0.5879 GB, free: 22.55 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (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,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.004366/0.467, allocations: 3.909 MB / 0.5917 GB, free: 18.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003116/0.4701, allocations: 2.416 MB / 0.594 GB, free: 16.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4702, allocations: 0 / 0.594 GB, free: 16.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.4722, allocations: 1.772 MB / 0.5958 GB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002534/0.4747, allocations: 0.5175 MB / 0.5963 GB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03912/0.5138, allocations: 24.64 MB / 0.6203 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002978/0.5169, allocations: 2.331 MB / 0.6226 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001612/0.5185, allocations: 409.3 kB / 0.623 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001715/0.5202, allocations: 1.162 MB / 0.6241 GB, free: 15.26 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5202, allocations: 0 / 0.6241 GB, free: 15.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08665/0.6069, allocations: 51.83 MB / 0.6748 GB, free: 11.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.6071, allocations: 215.3 kB / 0.675 GB, free: 11.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.83/3.437, allocations: 0 / 0.675 GB, free: 11.59 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)