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.001397/0.001397, allocations: 111.9 kB / 16.42 MB, free: 6.469 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.343/1.343, allocations: 222.9 MB / 240.1 MB, free: 4.531 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.00128/0.001281, allocations: 191.8 kB / 290.4 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.03419/0.03419, allocations: 8.798 MB / 349.3 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 79.88 kB / 464.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.0892, allocations: 51.55 MB / 0.5041 GB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01489/0.1041, allocations: 13.4 MB / 0.5172 GB, free: 12.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007679/0.1118, allocations: 4.423 MB / 0.5215 GB, free: 7.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002009/0.1139, allocations: 87.62 kB / 0.5216 GB, free: 7.508 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002881/0.1168, allocations: 1.025 MB / 0.5226 GB, free: 6.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004444/0.1213, allocations: 1.293 MB / 0.5238 GB, free: 5.176 MB / 366.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.002525/0.1238, allocations: 0.8723 MB / 0.5247 GB, free: 4.305 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005357/0.1292, allocations: 3.807 MB / 0.5284 GB, free: 496 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1947/0.3239, allocations: 3.341 MB / 0.5317 GB, free: 5.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.326, allocations: 1.786 MB / 0.5334 GB, free: 5.477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00213/0.3282, allocations: 2.008 MB / 0.5354 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006288/0.3288, allocations: 498.5 kB / 0.5358 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.3301, allocations: 0.6867 MB / 0.5365 GB, free: 5.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007182/0.3308, allocations: 1.069 MB / 0.5376 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001591/0.3324, allocations: 2.041 MB / 0.5395 GB, free: 4.496 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005832/0.3382, allocations: 6.404 MB / 0.5458 GB, free: 3.859 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3382, allocations: 2.562 kB / 0.5458 GB, free: 3.859 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3383, allocations: 0 / 0.5458 GB, free: 3.859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001087/0.3384, allocations: 1.094 kB / 0.5458 GB, free: 3.859 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009559/0.3479, allocations: 4.178 MB / 0.5499 GB, free: 2.324 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.348, allocations: 13.34 kB / 0.5499 GB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003842/0.3518, allocations: 0.7536 MB / 0.5506 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003475/0.3553, allocations: 2.318 MB / 0.5529 GB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.3555, allocations: 234.2 kB / 0.5531 GB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004704/0.356, allocations: 313.8 kB / 0.5534 GB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006529/0.3625, allocations: 4.165 MB / 0.5575 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-05/0.3626, allocations: 10.22 kB / 0.5575 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003242/0.3629, allocations: 129.6 kB / 0.5576 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/0.3631, allocations: 149.4 kB / 0.5578 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005578/0.3686, allocations: 3.505 MB / 0.5612 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01718/0.3858, allocations: 13.03 MB / 0.5739 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005211/0.3911, allocations: 5.51 MB / 0.5793 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001686/0.3928, allocations: 1.063 MB / 0.5803 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004542/0.3973, allocations: 3.025 MB / 0.5833 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.3974, allocations: 47.31 kB / 0.5833 GB, free: 9.496 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 2.535e-06/0.3974, allocations: 4 kB / 0.5833 GB, free: 9.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.008478/0.4059, allocations: 4.612 MB / 0.5878 GB, free: 4.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.4059, allocations: 68.41 kB / 0.5879 GB, free: 4.648 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002206/0.4081, allocations: 1.602 MB / 0.5895 GB, free: 3.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.93e-05/0.4082, allocations: 41.7 kB / 0.5895 GB, free: 2.992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.4092, allocations: 1.424 MB / 0.5909 GB, free: 1.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/0.4095, allocations: 386.6 kB / 0.5913 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004156/0.4099, allocations: 275.3 kB / 0.5915 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.4101, allocations: 305.1 kB / 0.5918 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009799/0.411, allocations: 0.57 MB / 0.5924 GB, free: 32 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.4123, allocations: 1.054 MB / 0.5934 GB, free: 14.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002338/0.4147, allocations: 1.725 MB / 0.5951 GB, free: 12.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.4147, allocations: 4 kB / 0.5951 GB, free: 12.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003238/0.418, allocations: 2.04 MB / 0.5971 GB, free: 10.9 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.418, allocations: 13.56 kB / 0.5971 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.418, allocations: 16 kB / 0.5971 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003858/0.4184, allocations: 144.5 kB / 0.5972 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.4198, allocations: 365.4 kB / 0.5976 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002673/0.4225, allocations: 3.373 MB / 0.6009 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.4235, allocations: 78.73 kB / 0.601 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.4236, allocations: 64 kB / 0.601 GB, free: 6.637 MB / 414.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.001378/0.425, allocations: 0.9661 MB / 0.602 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.4253, allocations: 169.8 kB / 0.6021 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003028/0.4283, allocations: 1.813 MB / 0.6039 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.4283, allocations: 3.984 kB / 0.6039 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4283, allocations: 3.984 kB / 0.6039 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005682/0.4289, allocations: 366.9 kB / 0.6043 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.4292, allocations: 27.94 kB / 0.6043 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007913/0.43, allocations: 59.89 kB / 0.6043 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.4302, allocations: 88.84 kB / 0.6044 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003609/0.4338, allocations: 1.67 MB / 0.6061 GB, free: 1.434 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002949/0.4367, allocations: 2.06 MB / 0.6081 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008368/0.4376, allocations: 0.5621 MB / 0.6086 GB, free: 14.79 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001555/0.4391, allocations: 1.098 MB / 0.6097 GB, free: 13.69 MB / 430.1 MB Notification: Performance of Backend: time 4e-07/0.4392, allocations: 0 / 0.6097 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002736/0.4419, allocations: 1.449 MB / 0.6111 GB, free: 12.27 MB / 430.1 MB Notification: Performance of SimCode: time 0.009668/0.4516, allocations: 5.942 MB / 0.6169 GB, free: 6.281 MB / 430.1 MB Notification: Performance of Templates: time 0.04978/0.5014, allocations: 29.51 MB / 0.6457 GB, free: 9.113 MB / 462.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)