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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03722/0.03722, allocations: 8.793 MB / 25.52 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 251.3 MB, free: 7.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 101.3 kB / 303.6 MB, free: 14.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001203, allocations: 63.91 kB / 366 MB, free: 180 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1947, allocations: 51.55 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.009628/0.2044, allocations: 13.44 MB / 431 MB, free: 7.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00698/0.2114, allocations: 4.392 MB / 435.4 MB, free: 3.008 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00268/0.2141, allocations: 75.75 kB / 435.4 MB, free: 2.934 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00241/0.2165, allocations: 0.8628 MB / 436.3 MB, free: 2.066 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003373/0.2199, allocations: 1.163 MB / 437.5 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.2216, allocations: 0.8338 MB / 438.3 MB, free: 68 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004998/0.2266, allocations: 4.438 MB / 442.7 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002837/0.2295, allocations: 2.655 MB / 445.4 MB, free: 8.891 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.2314, allocations: 1.533 MB / 446.9 MB, free: 7.352 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001849/0.2332, allocations: 1.902 MB / 448.8 MB, free: 5.441 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004131/0.2337, allocations: 300 kB / 449.1 MB, free: 5.148 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009897/0.2346, allocations: 0.4997 MB / 449.6 MB, free: 4.648 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006407/0.2353, allocations: 0.8719 MB / 450.5 MB, free: 3.773 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001687/0.237, allocations: 1.905 MB / 452.4 MB, free: 1.859 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004963/0.242, allocations: 6.461 MB / 458.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.242, allocations: 0 / 458.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.242, allocations: 0 / 458.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001188/0.2421, allocations: 0 / 458.9 MB, free: 11.38 MB / 330.7 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.009398/0.2515, allocations: 4.395 MB / 463.3 MB, free: 6.906 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.2516, allocations: 19.95 kB / 463.3 MB, free: 6.887 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003778/0.2554, allocations: 0.8163 MB / 464.1 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00385/0.2592, allocations: 2.334 MB / 466.4 MB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.2594, allocations: 242.9 kB / 466.7 MB, free: 3.438 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005345/0.26, allocations: 340 kB / 467 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006758/0.2667, allocations: 4.314 MB / 471.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-05/0.2668, allocations: 15.84 kB / 471.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002659/0.2671, allocations: 132 kB / 471.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.2672, allocations: 146.5 kB / 471.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005688/0.2729, allocations: 3.59 MB / 475.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01911/0.292, allocations: 13.85 MB / 489 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006126/0.2982, allocations: 6.628 MB / 495.7 MB, free: 5.164 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.3003, allocations: 1.387 MB / 497 MB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005717/0.306, allocations: 3.678 MB / 0.489 GB, free: 8 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.174/0.48, allocations: 0.9358 MB / 0.4899 GB, free: 69.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=143): time 4.498e-06/0.48, allocations: 0 / 0.4899 GB, free: 69.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=146): time 0.01039/0.4904, allocations: 5.984 MB / 0.4957 GB, free: 66.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.4905, allocations: 232.7 kB / 0.496 GB, free: 66.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/0.4927, allocations: 1.779 MB / 0.4977 GB, free: 65.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.987e-05/0.4928, allocations: 61.48 kB / 0.4978 GB, free: 65.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008997/0.4937, allocations: 1.463 MB / 0.4992 GB, free: 64.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.494, allocations: 0.4946 MB / 0.4997 GB, free: 64.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004546/0.4944, allocations: 345.9 kB / 0.5 GB, free: 64.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.497e-05/0.4945, allocations: 309 kB / 0.5003 GB, free: 63.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009064/0.4954, allocations: 0.6918 MB / 0.501 GB, free: 63.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.4967, allocations: 1.355 MB / 0.5023 GB, free: 62.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/0.499, allocations: 2.111 MB / 0.5044 GB, free: 61.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.499, allocations: 3.969 kB / 0.5044 GB, free: 61.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.003791/0.5028, allocations: 2.643 MB / 0.5069 GB, free: 59.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.5029, allocations: 17.77 kB / 0.507 GB, free: 59.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.468e-05/0.5029, allocations: 19.62 kB / 0.507 GB, free: 59.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008443/0.5038, allocations: 377.3 kB / 0.5073 GB, free: 59.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.505, allocations: 393.6 kB / 0.5077 GB, free: 59.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005461/0.5105, allocations: 7.708 MB / 0.5152 GB, free: 53.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/0.5123, allocations: 94.72 kB / 0.5153 GB, free: 53.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.5124, allocations: 83.12 kB / 0.5154 GB, free: 53.08 MB / 362.7 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.001556/0.514, allocations: 1.034 MB / 0.5164 GB, free: 52.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/0.5144, allocations: 205.5 kB / 0.5166 GB, free: 51.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00324/0.5176, allocations: 2.328 MB / 0.5189 GB, free: 49.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.5176, allocations: 12 kB / 0.5189 GB, free: 49.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.5176, allocations: 8 kB / 0.5189 GB, free: 49.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.5177, allocations: 15.91 kB / 0.5189 GB, free: 49.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006885/0.5246, allocations: 5.126 MB / 0.5239 GB, free: 44.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.5246, allocations: 4.188 kB / 0.5239 GB, free: 44.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006875/0.5253, allocations: 168.3 kB / 0.5241 GB, free: 44.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.5265, allocations: 0.5383 MB / 0.5246 GB, free: 43.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.623e-05/0.5266, allocations: 43.97 kB / 0.5247 GB, free: 43.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008021/0.5347, allocations: 12.11 MB / 0.5365 GB, free: 30.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5347, allocations: 3.984 kB / 0.5365 GB, free: 30.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03002/0.5647, allocations: 28.22 MB / 0.5641 GB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006448/0.5654, allocations: 430.6 kB / 0.5645 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.5656, allocations: 43.98 kB / 0.5645 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008121/0.5664, allocations: 64.11 kB / 0.5646 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/0.5667, allocations: 113.1 kB / 0.5647 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.048e-05/0.5668, allocations: 39.98 kB / 0.5647 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001569/0.5684, allocations: 1.215 MB / 0.5659 GB, free: 15.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5684, allocations: 4 kB / 0.5659 GB, free: 15.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002942/0.5713, allocations: 0.832 MB / 0.5667 GB, free: 14.45 MB / 378.7 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.0003514/0.5717, allocations: 167 kB / 0.5669 GB, free: 14.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003508/0.5752, allocations: 2.407 MB / 0.5692 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5752, allocations: 0 / 0.5692 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.5776, allocations: 1.76 MB / 0.5709 GB, free: 9.977 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/0.5798, allocations: 0.5209 MB / 0.5715 GB, free: 9.461 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.5918, allocations: 9.271 MB / 0.5805 GB, free: 72 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/0.5938, allocations: 2.379 MB / 0.5828 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00151/0.5953, allocations: 425.3 kB / 0.5832 GB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003067/0.5956, allocations: 131.4 kB / 0.5834 GB, free: 13.12 MB / 394.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5956, allocations: 0 / 0.5834 GB, free: 13.12 MB / 394.7 MB Notification: Performance of Templates: time 0.05448/0.6501, allocations: 35.7 MB / 0.6182 GB, free: 9.785 MB / 426.7 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)