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.00525/0.00525, allocations: 99 kB / 15.73 MB, free: 6.008 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.347/1.347, allocations: 222.9 MB / 239.4 MB, free: 4.387 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.001541/0.001541, allocations: 184.5 kB / 289.7 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03558/0.03558, allocations: 8.812 MB / 348.7 MB, free: 4.555 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 79.88 kB / 463.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09559, allocations: 51.57 MB / 0.5029 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.0148/0.1104, allocations: 13.58 MB / 0.5162 GB, free: 12.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007831/0.1183, allocations: 4.442 MB / 0.5205 GB, free: 7.926 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.12, allocations: 75.75 kB / 0.5206 GB, free: 7.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002606/0.1227, allocations: 0.99 MB / 0.5216 GB, free: 6.855 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003667/0.1264, allocations: 1.304 MB / 0.5228 GB, free: 5.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002157/0.1285, allocations: 0.8983 MB / 0.5237 GB, free: 4.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005202/0.1337, allocations: 4.172 MB / 0.5278 GB, free: 460 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1903/0.3241, allocations: 3.181 MB / 0.5309 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.3263, allocations: 1.905 MB / 0.5328 GB, free: 4.758 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002458/0.3288, allocations: 2.069 MB / 0.5348 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000953/0.3298, allocations: 0.5078 MB / 0.5353 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.3314, allocations: 0.7114 MB / 0.536 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009033/0.3324, allocations: 1.093 MB / 0.537 GB, free: 4.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0024/0.3348, allocations: 2.145 MB / 0.5391 GB, free: 3.723 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007435/0.3422, allocations: 6.704 MB / 0.5457 GB, free: 2.988 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3422, allocations: 0 / 0.5457 GB, free: 2.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3423, allocations: 0.5 kB / 0.5457 GB, free: 2.988 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001649/0.3424, allocations: 0.5156 kB / 0.5457 GB, free: 2.988 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.01221/0.3546, allocations: 4.502 MB / 0.5501 GB, free: 1.285 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3547, allocations: 10.72 kB / 0.5501 GB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006761/0.3554, allocations: 464.7 kB / 0.5505 GB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004093/0.3595, allocations: 0.8401 MB / 0.5514 GB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004214/0.3637, allocations: 2.453 MB / 0.5537 GB, free: 392 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.3639, allocations: 247.2 kB / 0.554 GB, free: 280 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005658/0.3645, allocations: 332.4 kB / 0.5543 GB, free: 164 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007677/0.3722, allocations: 4.318 MB / 0.5585 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.758e-05/0.3723, allocations: 9.984 kB / 0.5585 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00034/0.3726, allocations: 136.7 kB / 0.5587 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000144/0.3728, allocations: 153 kB / 0.5588 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005793/0.3786, allocations: 3.59 MB / 0.5623 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02021/0.3988, allocations: 13.71 MB / 0.5757 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007009/0.4058, allocations: 6.642 MB / 0.5822 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002449/0.4083, allocations: 1.401 MB / 0.5835 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006387/0.4147, allocations: 3.654 MB / 0.5871 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001452/0.4162, allocations: 0.9465 MB / 0.588 GB, free: 3.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 3.917e-06/0.4162, allocations: 4 kB / 0.588 GB, free: 3.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.01233/0.4286, allocations: 6.03 MB / 0.5939 GB, free: 13.35 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/0.4287, allocations: 228.2 kB / 0.5941 GB, free: 13.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00276/0.4315, allocations: 1.785 MB / 0.5959 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001736/0.4317, allocations: 53.7 kB / 0.5959 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.4332, allocations: 1.503 MB / 0.5974 GB, free: 9.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004559/0.4337, allocations: 0.5199 MB / 0.5979 GB, free: 9.207 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005444/0.4342, allocations: 347.4 kB / 0.5983 GB, free: 8.863 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4344, allocations: 305.1 kB / 0.5985 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.4355, allocations: 0.6949 MB / 0.5992 GB, free: 7.867 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.4372, allocations: 1.352 MB / 0.6005 GB, free: 6.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002965/0.4402, allocations: 2.117 MB / 0.6026 GB, free: 3.953 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.4402, allocations: 4 kB / 0.6026 GB, free: 3.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004472/0.4447, allocations: 2.651 MB / 0.6052 GB, free: 1.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.4447, allocations: 12 kB / 0.6052 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.4448, allocations: 31.77 kB / 0.6052 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009795/0.4457, allocations: 363.7 kB / 0.6056 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.4471, allocations: 396.6 kB / 0.606 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008402/0.4555, allocations: 8.452 MB / 0.6142 GB, free: 7.672 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/0.4577, allocations: 96.02 kB / 0.6143 GB, free: 7.578 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/0.458, allocations: 83.98 kB / 0.6144 GB, free: 7.496 MB / 430.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.002412/0.4604, allocations: 1.027 MB / 0.6154 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004619/0.4609, allocations: 206.7 kB / 0.6156 GB, free: 6.281 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004233/0.4651, allocations: 2.342 MB / 0.6179 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.4652, allocations: 19.98 kB / 0.6179 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.717e-05/0.4652, allocations: 11.94 kB / 0.6179 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.4652, allocations: 3.984 kB / 0.6179 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009571/0.4748, allocations: 5.131 MB / 0.6229 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.4749, allocations: 0 / 0.6229 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007855/0.4756, allocations: 176 kB / 0.6231 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001424/0.4771, allocations: 0.5217 MB / 0.6236 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.4772, allocations: 39.98 kB / 0.6236 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01278/0.49, allocations: 13.25 MB / 0.6366 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.49, allocations: 3.938 kB / 0.6366 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005372/0.4954, allocations: 3.297 MB / 0.6398 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009912/0.4964, allocations: 442.3 kB / 0.6402 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002924/0.4967, allocations: 47.94 kB / 0.6403 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008281/0.4976, allocations: 59.95 kB / 0.6403 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/0.4979, allocations: 111.8 kB / 0.6404 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.064e-05/0.498, allocations: 47.97 kB / 0.6405 GB, free: 11.87 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001795/0.4998, allocations: 1.215 MB / 0.6417 GB, free: 10.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4998, allocations: 4 kB / 0.6417 GB, free: 10.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002293/0.5021, allocations: 0.5937 MB / 0.6423 GB, free: 10.07 MB / 462.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.005494/0.5076, allocations: 3.917 MB / 0.6461 GB, free: 6.098 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003819/0.5114, allocations: 2.428 MB / 0.6485 GB, free: 3.664 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.748e-06/0.5114, allocations: 0 / 0.6485 GB, free: 3.664 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002652/0.5141, allocations: 1.752 MB / 0.6502 GB, free: 1.855 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.5169, allocations: 0.5522 MB / 0.6507 GB, free: 1.305 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0331/0.55, allocations: 20.78 MB / 0.671 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002209/0.5522, allocations: 2.327 MB / 0.6733 GB, free: 9.539 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001293/0.5535, allocations: 417.3 kB / 0.6737 GB, free: 9.129 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/0.555, allocations: 1.151 MB / 0.6748 GB, free: 7.977 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/0.555, allocations: 4 kB / 0.6748 GB, free: 7.973 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1145/0.6695, allocations: 55.02 MB / 0.7285 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.11, allocations: 3.984 kB / 0.7285 GB, free: 1.367 MB / 0.5294 GB (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)