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.001421/0.001421, allocations: 105.9 kB / 16.41 MB, free: 6.457 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.378/1.378, allocations: 222.9 MB / 240.1 MB, free: 4.371 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.001513/0.001513, allocations: 196.4 kB / 290.4 MB, free: 2.105 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03339/0.03339, allocations: 8.798 MB / 349.3 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 75.88 kB / 464.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.105, allocations: 51.58 MB / 0.5041 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01421/0.1193, allocations: 13.39 MB / 0.5172 GB, free: 11.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009326/0.1287, allocations: 4.419 MB / 0.5215 GB, free: 7.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002863/0.1316, allocations: 91.62 kB / 0.5216 GB, free: 7.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003811/0.1354, allocations: 1.025 MB / 0.5226 GB, free: 6.398 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005143/0.1406, allocations: 1.289 MB / 0.5238 GB, free: 5.102 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.002746/0.1434, allocations: 0.8687 MB / 0.5247 GB, free: 4.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005652/0.1491, allocations: 3.812 MB / 0.5284 GB, free: 420 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2572/0.4063, allocations: 3.347 MB / 0.5317 GB, free: 5.473 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002976/0.4093, allocations: 1.785 MB / 0.5334 GB, free: 5.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.413, allocations: 2.007 MB / 0.5354 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001589/0.4146, allocations: 498.3 kB / 0.5358 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002875/0.4175, allocations: 0.6879 MB / 0.5365 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001776/0.4193, allocations: 1.072 MB / 0.5376 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005059/0.4244, allocations: 2.044 MB / 0.5395 GB, free: 4.371 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.4345, allocations: 6.401 MB / 0.5458 GB, free: 3.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4345, allocations: 10.34 kB / 0.5458 GB, free: 3.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4345, allocations: 0 / 0.5458 GB, free: 3.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002365/0.4348, allocations: 0 / 0.5458 GB, free: 3.73 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.01518/0.45, allocations: 4.175 MB / 0.5499 GB, free: 2.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.45, allocations: 9.156 kB / 0.5499 GB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004805/0.4549, allocations: 0.7526 MB / 0.5506 GB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00588/0.4608, allocations: 2.321 MB / 0.5529 GB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002714/0.4611, allocations: 233.4 kB / 0.5531 GB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001437/0.4625, allocations: 313.9 kB / 0.5534 GB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/0.4745, allocations: 4.164 MB / 0.5575 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.642e-05/0.4746, allocations: 10.17 kB / 0.5575 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004831/0.4751, allocations: 130.9 kB / 0.5576 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001767/0.4753, allocations: 140.8 kB / 0.5578 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007919/0.4832, allocations: 3.504 MB / 0.5612 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02663/0.5099, allocations: 13.03 MB / 0.5739 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005416/0.5154, allocations: 5.509 MB / 0.5793 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/0.5172, allocations: 1.06 MB / 0.5803 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005977/0.5232, allocations: 3.033 MB / 0.5833 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.5233, allocations: 50.75 kB / 0.5833 GB, free: 9.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.887e-06/0.5233, allocations: 0 / 0.5833 GB, free: 9.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.01022/0.5335, allocations: 4.616 MB / 0.5878 GB, free: 4.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.5336, allocations: 64.41 kB / 0.5879 GB, free: 4.531 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002606/0.5363, allocations: 1.602 MB / 0.5895 GB, free: 2.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001959/0.5365, allocations: 45.7 kB / 0.5895 GB, free: 2.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.5375, allocations: 1.42 MB / 0.5909 GB, free: 1.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004278/0.5379, allocations: 391.6 kB / 0.5913 GB, free: 1.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004207/0.5384, allocations: 267.4 kB / 0.5915 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5385, allocations: 317 kB / 0.5918 GB, free: 488 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.5395, allocations: 0.5622 MB / 0.5924 GB, free: 15.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.5407, allocations: 1.058 MB / 0.5934 GB, free: 14.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/0.5431, allocations: 1.722 MB / 0.5951 GB, free: 12.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.186e-05/0.5432, allocations: 4 kB / 0.5951 GB, free: 12.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003731/0.5469, allocations: 2.042 MB / 0.5971 GB, free: 10.78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.547, allocations: 12 kB / 0.5971 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.547, allocations: 16.38 kB / 0.5971 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003994/0.5474, allocations: 145.5 kB / 0.5972 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.5487, allocations: 363.7 kB / 0.5976 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002936/0.5517, allocations: 3.373 MB / 0.6009 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.5535, allocations: 67.95 kB / 0.6009 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.5537, allocations: 68 kB / 0.601 GB, free: 6.516 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.002337/0.556, allocations: 0.9619 MB / 0.602 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005457/0.5565, allocations: 173.8 kB / 0.6021 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003545/0.5601, allocations: 1.812 MB / 0.6039 GB, free: 3.539 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.5601, allocations: 20 kB / 0.6039 GB, free: 3.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.5602, allocations: 4 kB / 0.6039 GB, free: 3.516 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.5602, allocations: 3.984 kB / 0.6039 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008763/0.5689, allocations: 4.343 MB / 0.6082 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.569, allocations: 4 kB / 0.6082 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008391/0.5698, allocations: 180 kB / 0.6083 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008798/0.5707, allocations: 309.8 kB / 0.6086 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-05/0.5708, allocations: 31.98 kB / 0.6087 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007815/0.5787, allocations: 8.195 MB / 0.6167 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.5787, allocations: 0 / 0.6167 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004639/0.5834, allocations: 2.565 MB / 0.6192 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.5845, allocations: 366.9 kB / 0.6195 GB, free: 2.859 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003008/0.5848, allocations: 35.98 kB / 0.6195 GB, free: 2.824 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008444/0.5856, allocations: 47.97 kB / 0.6196 GB, free: 2.777 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002623/0.5859, allocations: 83.5 kB / 0.6197 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.211e-05/0.586, allocations: 35.98 kB / 0.6197 GB, free: 2.664 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001775/0.5878, allocations: 1.102 MB / 0.6208 GB, free: 1.566 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5878, allocations: 0 / 0.6208 GB, free: 1.566 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002189/0.59, allocations: 0.5001 MB / 0.6213 GB, free: 1.066 MB / 430.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.0003675/0.5903, allocations: 175.2 kB / 0.6214 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003002/0.5934, allocations: 1.716 MB / 0.6231 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.5934, allocations: 0 / 0.6231 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001982/0.5954, allocations: 1.215 MB / 0.6243 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002843/0.5982, allocations: 0.5046 MB / 0.6248 GB, free: 13.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/0.6092, allocations: 5.335 MB / 0.63 GB, free: 8.074 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002158/0.6114, allocations: 2.183 MB / 0.6321 GB, free: 5.863 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006373/0.6121, allocations: 131.4 kB / 0.6323 GB, free: 5.734 MB / 446.1 MB Notification: Performance of SimCode: time 1.443e-06/0.6121, allocations: 0 / 0.6323 GB, free: 5.734 MB / 446.1 MB Notification: Performance of Templates: time 0.1047/0.7167, allocations: 90.33 MB / 0.7205 GB, free: 11.44 MB / 0.5294 GB 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)