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.001538/0.001538, allocations: 104.9 kB / 16.36 MB, free: 5.875 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.372/1.372, allocations: 222.9 MB / 240 MB, free: 4.539 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.001281/0.001281, allocations: 184.5 kB / 290.3 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03859/0.03859, allocations: 8.803 MB / 349.3 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 78.66 kB / 412.5 MB, free: 41.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08791/0.08956, allocations: 51.57 MB / 464.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01399/0.1036, allocations: 13.38 MB / 477.5 MB, free: 92 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008161/0.1118, allocations: 4.438 MB / 481.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.1139, allocations: 91.62 kB / 482 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002891/0.1168, allocations: 1.021 MB / 483 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004349/0.1212, allocations: 1.293 MB / 484.3 MB, free: 9.215 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.002333/0.1235, allocations: 0.8645 MB / 485.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004397/0.1279, allocations: 3.814 MB / 489 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003347/0.1313, allocations: 3.351 MB / 492.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.1335, allocations: 1.772 MB / 494.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.1357, allocations: 2.004 MB / 496.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005221/0.1363, allocations: 0.4922 MB / 496.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.1373, allocations: 0.6911 MB / 497.3 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008056/0.1382, allocations: 1.064 MB / 498.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001829/0.14, allocations: 2.042 MB / 0.4887 GB, free: 9.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005933/0.1459, allocations: 6.399 MB / 0.4949 GB, free: 2.598 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.146, allocations: 0 / 0.4949 GB, free: 2.598 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.146, allocations: 4 kB / 0.4949 GB, free: 2.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002332/0.1462, allocations: 0 / 0.4949 GB, free: 2.594 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.01113/0.1574, allocations: 4.183 MB / 0.499 GB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1574, allocations: 8.031 kB / 0.499 GB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003642/0.1611, allocations: 0.7462 MB / 0.4997 GB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004499/0.1656, allocations: 2.313 MB / 0.502 GB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.1658, allocations: 238.7 kB / 0.5022 GB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005695/0.1664, allocations: 320 kB / 0.5025 GB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006806/0.1732, allocations: 4.165 MB / 0.5066 GB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.2e-05/0.1733, allocations: 0 / 0.5066 GB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.1735, allocations: 128 kB / 0.5067 GB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/0.1737, allocations: 138.3 kB / 0.5069 GB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005614/0.1793, allocations: 3.511 MB / 0.5103 GB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01936/0.1987, allocations: 13.03 MB / 0.523 GB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2402/0.439, allocations: 5.507 MB / 0.5284 GB, free: 63.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002318/0.4413, allocations: 1.069 MB / 0.5294 GB, free: 63.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005919/0.4473, allocations: 3.036 MB / 0.5324 GB, free: 62.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.4473, allocations: 52.06 kB / 0.5324 GB, free: 62.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 4.638e-06/0.4473, allocations: 0 / 0.5324 GB, free: 62.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.009761/0.4571, allocations: 4.607 MB / 0.5369 GB, free: 61.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.4572, allocations: 68.34 kB / 0.537 GB, free: 61.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002674/0.4599, allocations: 1.599 MB / 0.5386 GB, free: 61.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.803e-05/0.46, allocations: 47.61 kB / 0.5386 GB, free: 61.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.461, allocations: 1.42 MB / 0.54 GB, free: 60.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003248/0.4614, allocations: 392.7 kB / 0.5404 GB, free: 60.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000454/0.4618, allocations: 272.7 kB / 0.5406 GB, free: 60.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.175e-05/0.4619, allocations: 303.2 kB / 0.5409 GB, free: 59.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.463, allocations: 0.5671 MB / 0.5415 GB, free: 59.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.4644, allocations: 1.06 MB / 0.5425 GB, free: 59.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00227/0.4666, allocations: 1.73 MB / 0.5442 GB, free: 58.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.4667, allocations: 8.594 kB / 0.5442 GB, free: 58.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003731/0.4704, allocations: 2.039 MB / 0.5462 GB, free: 57.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.4705, allocations: 16.19 kB / 0.5462 GB, free: 57.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.519e-05/0.4705, allocations: 14.19 kB / 0.5462 GB, free: 57.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004007/0.4709, allocations: 139.9 kB / 0.5464 GB, free: 57.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.4722, allocations: 363.7 kB / 0.5467 GB, free: 57.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.4743, allocations: 3.367 MB / 0.55 GB, free: 54.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.4757, allocations: 72.42 kB / 0.5501 GB, free: 54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.4759, allocations: 69.11 kB / 0.5501 GB, free: 53.99 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.001769/0.4776, allocations: 0.9756 MB / 0.5511 GB, free: 53.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000538/0.4782, allocations: 168.8 kB / 0.5513 GB, free: 53.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003665/0.4819, allocations: 1.806 MB / 0.553 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.4819, allocations: 11.84 kB / 0.553 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.4819, allocations: 4.531 kB / 0.553 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.4819, allocations: 3.75 kB / 0.553 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006011/0.4879, allocations: 4.357 MB / 0.5573 GB, free: 50.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/0.488, allocations: 1.312 kB / 0.5573 GB, free: 50.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.4887, allocations: 179.5 kB / 0.5575 GB, free: 50.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007408/0.4895, allocations: 312.1 kB / 0.5578 GB, free: 50.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.361e-05/0.4896, allocations: 30.09 kB / 0.5578 GB, free: 50.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005459/0.495, allocations: 8.197 MB / 0.5658 GB, free: 42.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.495, allocations: 3.938 kB / 0.5658 GB, free: 42.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003378/0.4984, allocations: 2.559 MB / 0.5683 GB, free: 40.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007767/0.4992, allocations: 372.2 kB / 0.5687 GB, free: 40.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.4994, allocations: 23.81 kB / 0.5687 GB, free: 40.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007509/0.5002, allocations: 58.8 kB / 0.5687 GB, free: 40.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.5004, allocations: 94.14 kB / 0.5688 GB, free: 40.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.286e-05/0.5005, allocations: 35.11 kB / 0.5689 GB, free: 40.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00137/0.5018, allocations: 1.089 MB / 0.5699 GB, free: 39.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5019, allocations: 3.719 kB / 0.5699 GB, free: 39.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001827/0.5037, allocations: 0.5089 MB / 0.5704 GB, free: 39.79 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.000279/0.504, allocations: 155.3 kB / 0.5706 GB, free: 39.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.5063, allocations: 1.717 MB / 0.5722 GB, free: 37.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5063, allocations: 4 kB / 0.5722 GB, free: 37.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.5077, allocations: 1.226 MB / 0.5734 GB, free: 36.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.5097, allocations: 0.5025 MB / 0.5739 GB, free: 36.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007753/0.5175, allocations: 5.349 MB / 0.5792 GB, free: 30.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001501/0.519, allocations: 2.235 MB / 0.5813 GB, free: 28.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.5201, allocations: 375.2 kB / 0.5817 GB, free: 28.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002677/0.5204, allocations: 123.4 kB / 0.5818 GB, free: 28.03 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5204, allocations: 0 / 0.5818 GB, free: 28.03 MB / 366.1 MB Notification: Performance of Templates: time 0.0391/0.5595, allocations: 25.34 MB / 0.6066 GB, free: 2.973 MB / 366.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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)