Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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: translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009186/0.0009185, allocations: 98.83 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.327/1.327, allocations: 223.2 MB / 238.9 MB, free: 5.676 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.001187/0.001187, allocations: 185 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0343/0.0343, allocations: 8.788 MB / 350.1 MB, free: 4.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005179/0.000518, allocations: 10.19 kB / 413.1 MB, free: 43.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1359, allocations: 52.56 MB / 465.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01412/0.1501, allocations: 10.79 MB / 476.4 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009143/0.1593, allocations: 4.196 MB / 480.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002524/0.1619, allocations: 71.69 kB / 480.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002944/0.1648, allocations: 0.8085 MB / 481.5 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004445/0.1693, allocations: 1.137 MB / 482.6 MB, free: 12.6 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.001996/0.1713, allocations: 0.6106 MB / 483.3 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005685/0.177, allocations: 2.609 MB / 485.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003855/0.1809, allocations: 2.301 MB / 488.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002264/0.1832, allocations: 1.191 MB / 489.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002727/0.1859, allocations: 1.385 MB / 490.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00091/0.1868, allocations: 196 kB / 490.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001825/0.1887, allocations: 371.7 kB / 491.3 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008238/0.1895, allocations: 0.6852 MB / 492 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.1906, allocations: 0.707 MB / 492.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006608/0.1972, allocations: 5.208 MB / 497.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.175e-06/0.1972, allocations: 0 / 497.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.267e-06/0.1972, allocations: 0 / 497.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001472/0.1974, allocations: 0 / 497.9 MB, free: 13.27 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009633/0.207, allocations: 3.561 MB / 0.4897 GB, free: 9.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2071, allocations: 8.031 kB / 0.4897 GB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003967/0.2111, allocations: 0.757 MB / 0.4905 GB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004719/0.2158, allocations: 2.176 MB / 0.4926 GB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001883/0.216, allocations: 234.3 kB / 0.4928 GB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005828/0.2166, allocations: 323.9 kB / 0.4931 GB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008116/0.2247, allocations: 4.118 MB / 0.4971 GB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.025e-05/0.2248, allocations: 12 kB / 0.4971 GB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002739/0.2251, allocations: 124 kB / 0.4973 GB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.2252, allocations: 142.3 kB / 0.4974 GB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005726/0.231, allocations: 3.495 MB / 0.5008 GB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01884/0.2498, allocations: 13.21 MB / 0.5137 GB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005142/0.255, allocations: 5.498 MB / 0.5191 GB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004565/0.2596, allocations: 2.712 MB / 0.5217 GB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.2597, allocations: 43.56 kB / 0.5218 GB, free: 7.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 4.048e-06/0.2597, allocations: 3.984 kB / 0.5218 GB, free: 7.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=115): time 0.009333/0.2691, allocations: 4.734 MB / 0.5264 GB, free: 2.539 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.2691, allocations: 68.39 kB / 0.5265 GB, free: 2.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/0.2715, allocations: 1.539 MB / 0.528 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.2716, allocations: 49.7 kB / 0.528 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2274/0.499, allocations: 1.408 MB / 0.5294 GB, free: 64.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004251/0.4994, allocations: 406.8 kB / 0.5298 GB, free: 63.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-05/0.4996, allocations: 29.5 kB / 0.5298 GB, free: 63.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.4997, allocations: 364.5 kB / 0.5302 GB, free: 63.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009813/0.5006, allocations: 0.584 MB / 0.5307 GB, free: 63.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.5017, allocations: 1.059 MB / 0.5318 GB, free: 63.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.5028, allocations: 0.7835 MB / 0.5325 GB, free: 63.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.5029, allocations: 4.625 kB / 0.5325 GB, free: 63.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003034/0.5059, allocations: 2.077 MB / 0.5346 GB, free: 62.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.5059, allocations: 10.06 kB / 0.5346 GB, free: 62.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.506, allocations: 17.53 kB / 0.5346 GB, free: 62.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003926/0.5064, allocations: 139.4 kB / 0.5347 GB, free: 62.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.5078, allocations: 378.5 kB / 0.5351 GB, free: 62.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.5099, allocations: 3.091 MB / 0.5381 GB, free: 60.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.5111, allocations: 73.36 kB / 0.5382 GB, free: 60.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.5112, allocations: 67.27 kB / 0.5382 GB, free: 60.08 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (188): * Single equations (assignments): 185 * 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.001656/0.5129, allocations: 0.9625 MB / 0.5392 GB, free: 59.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.5132, allocations: 175.1 kB / 0.5393 GB, free: 59.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003161/0.5163, allocations: 1.859 MB / 0.5411 GB, free: 59.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.5164, allocations: 12.38 kB / 0.5412 GB, free: 59.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.5164, allocations: 9.016 kB / 0.5412 GB, free: 59.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/0.5164, allocations: 5.891 kB / 0.5412 GB, free: 59.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007854/0.5243, allocations: 4.422 MB / 0.5455 GB, free: 58.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.5243, allocations: 1.219 kB / 0.5455 GB, free: 58.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009051/0.5252, allocations: 197 kB / 0.5457 GB, free: 58.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007581/0.526, allocations: 305.3 kB / 0.546 GB, free: 58.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-05/0.5261, allocations: 29.86 kB / 0.546 GB, free: 58.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006014/0.5321, allocations: 7.546 MB / 0.5534 GB, free: 51.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.5321, allocations: 6.469 kB / 0.5534 GB, free: 51.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005608/0.5378, allocations: 2.733 MB / 0.556 GB, free: 50.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009433/0.5387, allocations: 371.5 kB / 0.5564 GB, free: 50.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/0.539, allocations: 27.75 kB / 0.5564 GB, free: 50.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007493/0.5397, allocations: 61.2 kB / 0.5565 GB, free: 50.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.5399, allocations: 98.89 kB / 0.5566 GB, free: 50.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-05/0.54, allocations: 27.72 kB / 0.5566 GB, free: 50.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001475/0.5415, allocations: 1.051 MB / 0.5576 GB, free: 49.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5415, allocations: 3.938 kB / 0.5576 GB, free: 49.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002092/0.5436, allocations: 0.505 MB / 0.5581 GB, free: 49.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002951/0.5439, allocations: 161.9 kB / 0.5583 GB, free: 49.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.5468, allocations: 1.759 MB / 0.56 GB, free: 48.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.5468, allocations: 3.969 kB / 0.56 GB, free: 48.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.5485, allocations: 1.251 MB / 0.5612 GB, free: 47.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00199/0.5505, allocations: 472 kB / 0.5617 GB, free: 47.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008143/0.5587, allocations: 6.592 MB / 0.5681 GB, free: 43.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001422/0.5601, allocations: 2.29 MB / 0.5704 GB, free: 41.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001358/0.5615, allocations: 375.3 kB / 0.5707 GB, free: 40.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.5617, allocations: 123.4 kB / 0.5708 GB, free: 40.73 MB / 366.1 MB Notification: Performance of SimCode: time 1.322e-06/0.5618, allocations: 0 / 0.5708 GB, free: 40.73 MB / 366.1 MB Notification: Performance of Templates: time 0.03492/0.5967, allocations: 23.1 MB / 0.5934 GB, free: 17.88 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1) Environment - environmentSimulation: