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.001732/0.001731, allocations: 100.1 kB / 15.88 MB, free: 8 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.403/2.403, allocations: 222.9 MB / 239.5 MB, free: 4.762 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.002163/0.002162, allocations: 184.1 kB / 289.8 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05814/0.05814, allocations: 8.798 MB / 348.7 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002334, allocations: 76.34 kB / 411.1 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1513, allocations: 51.57 MB / 462.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.02272/0.1741, allocations: 13.22 MB / 475.8 MB, free: 1.586 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01423/0.1884, allocations: 4.392 MB / 480.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004839/0.1933, allocations: 83.69 kB / 480.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005549/0.1989, allocations: 0.894 MB / 481.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007825/0.2068, allocations: 1.177 MB / 482.4 MB, free: 11.01 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.004252/0.2111, allocations: 0.7917 MB / 483.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.2212, allocations: 4.061 MB / 487.2 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007614/0.2289, allocations: 2.789 MB / 490 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004082/0.233, allocations: 1.448 MB / 491.5 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004992/0.2381, allocations: 1.856 MB / 493.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001758/0.2399, allocations: 296 kB / 493.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00349/0.2434, allocations: 0.4997 MB / 494.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002186/0.2456, allocations: 0.8643 MB / 495 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006015/0.2517, allocations: 1.827 MB / 496.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.2619, allocations: 5.394 MB / 0.4904 GB, free: 7.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.147e-05/0.262, allocations: 4 kB / 0.4904 GB, free: 7.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.262, allocations: 0 / 0.4904 GB, free: 7.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002562/0.2622, allocations: 0 / 0.4904 GB, free: 7.074 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.02183/0.2841, allocations: 4.168 MB / 0.4945 GB, free: 2.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.239e-05/0.2842, allocations: 8.031 kB / 0.4945 GB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007797/0.292, allocations: 0.754 MB / 0.4953 GB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008781/0.3008, allocations: 2.215 MB / 0.4974 GB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004337/0.3014, allocations: 238.7 kB / 0.4976 GB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/0.3032, allocations: 316 kB / 0.498 GB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01815/0.3213, allocations: 4.169 MB / 0.502 GB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002248/0.3216, allocations: 4 kB / 0.502 GB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001591/0.3233, allocations: 128 kB / 0.5021 GB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002861/0.3236, allocations: 138.3 kB / 0.5023 GB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01382/0.3374, allocations: 3.499 MB / 0.5057 GB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04332/0.3808, allocations: 13.2 MB / 0.5186 GB, free: 9.648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009783/0.3907, allocations: 5.518 MB / 0.524 GB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003309/0.394, allocations: 1.067 MB / 0.525 GB, free: 2.324 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3352/0.7292, allocations: 3.041 MB / 0.528 GB, free: 64.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.7293, allocations: 47.16 kB / 0.528 GB, free: 64.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 4.137e-06/0.7293, allocations: 0 / 0.528 GB, free: 64.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.009871/0.7392, allocations: 4.613 MB / 0.5325 GB, free: 63.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.7393, allocations: 61.22 kB / 0.5326 GB, free: 63.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003312/0.7426, allocations: 1.601 MB / 0.5342 GB, free: 63.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002026/0.7429, allocations: 43.77 kB / 0.5342 GB, free: 63.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001467/0.7443, allocations: 1.422 MB / 0.5356 GB, free: 62.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004326/0.7448, allocations: 394.5 kB / 0.536 GB, free: 62.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004734/0.7453, allocations: 269.8 kB / 0.5362 GB, free: 62.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.939e-05/0.7453, allocations: 301.7 kB / 0.5365 GB, free: 62.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.7465, allocations: 0.5703 MB / 0.5371 GB, free: 62.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.7479, allocations: 1.057 MB / 0.5381 GB, free: 61.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.7507, allocations: 1.728 MB / 0.5398 GB, free: 60.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.667e-05/0.7507, allocations: 9.469 kB / 0.5398 GB, free: 60.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.004317/0.755, allocations: 2.044 MB / 0.5418 GB, free: 60.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.911e-05/0.7551, allocations: 12 kB / 0.5418 GB, free: 60.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.09e-05/0.7551, allocations: 15.62 kB / 0.5418 GB, free: 60.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005269/0.7557, allocations: 134.9 kB / 0.542 GB, free: 60.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.7573, allocations: 362.7 kB / 0.5423 GB, free: 60.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.7601, allocations: 3.094 MB / 0.5453 GB, free: 57.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.7619, allocations: 73.22 kB / 0.5454 GB, free: 57.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/0.7621, allocations: 68.8 kB / 0.5455 GB, free: 57.47 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (185): * Single equations (assignments): 182 * 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.002178/0.7643, allocations: 0.9643 MB / 0.5464 GB, free: 56.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005237/0.7648, allocations: 174.8 kB / 0.5466 GB, free: 56.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003716/0.7685, allocations: 1.802 MB / 0.5483 GB, free: 55.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/0.7686, allocations: 10.41 kB / 0.5483 GB, free: 55.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/0.7686, allocations: 5.75 kB / 0.5483 GB, free: 55.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.812e-05/0.7686, allocations: 10.88 kB / 0.5483 GB, free: 55.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009847/0.7785, allocations: 4.352 MB / 0.5526 GB, free: 53.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.7786, allocations: 0.75 kB / 0.5526 GB, free: 53.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008639/0.7794, allocations: 184.6 kB / 0.5528 GB, free: 53.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009084/0.7803, allocations: 305.8 kB / 0.5531 GB, free: 53.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.7805, allocations: 31.84 kB / 0.5531 GB, free: 53.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00634/0.7868, allocations: 7.474 MB / 0.5604 GB, free: 47.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.7869, allocations: 3.938 kB / 0.5604 GB, free: 47.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004609/0.7915, allocations: 2.56 MB / 0.5629 GB, free: 45.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001417/0.7929, allocations: 375.4 kB / 0.5633 GB, free: 45.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006587/0.7936, allocations: 32.5 kB / 0.5633 GB, free: 45.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.7949, allocations: 56.2 kB / 0.5633 GB, free: 45.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002993/0.7953, allocations: 83.81 kB / 0.5634 GB, free: 45.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-05/0.7954, allocations: 42.58 kB / 0.5635 GB, free: 45.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002486/0.7979, allocations: 1.088 MB / 0.5645 GB, free: 44.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7979, allocations: 0 / 0.5645 GB, free: 44.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002808/0.8007, allocations: 0.5088 MB / 0.565 GB, free: 44.56 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 (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,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.0004484/0.8012, allocations: 149.7 kB / 0.5652 GB, free: 44.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003208/0.8044, allocations: 1.711 MB / 0.5668 GB, free: 43.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.8044, allocations: 4 kB / 0.5668 GB, free: 43.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.8062, allocations: 1.232 MB / 0.568 GB, free: 42.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/0.8096, allocations: 484.9 kB / 0.5685 GB, free: 41.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01264/0.8223, allocations: 6.688 MB / 0.575 GB, free: 35.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002688/0.825, allocations: 2.183 MB / 0.5772 GB, free: 32.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006971/0.8257, allocations: 131.4 kB / 0.5773 GB, free: 32.78 MB / 366.1 MB Notification: Performance of SimCode: time 1.593e-06/0.8258, allocations: 0 / 0.5773 GB, free: 32.78 MB / 366.1 MB Notification: Performance of Templates: time 0.1384/0.9641, allocations: 90.07 MB / 0.6653 GB, free: 6.711 MB / 430.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile (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)