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.001012/0.001012, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.475/1.475, allocations: 223.3 MB / 239.1 MB, free: 5.434 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.00125/0.00125, allocations: 175.6 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0346/0.0346, allocations: 8.81 MB / 350.2 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004352, allocations: 11.97 kB / 413.2 MB, free: 43.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1006, allocations: 52.56 MB / 465.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01179/0.1124, allocations: 11.76 MB / 477.5 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008507/0.121, allocations: 4.109 MB / 481.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002999/0.124, allocations: 79.69 kB / 481.7 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003883/0.1279, allocations: 0.7729 MB / 482.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004909/0.1329, allocations: 1.057 MB / 483.5 MB, free: 11.67 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.002346/0.1352, allocations: 0.5973 MB / 484.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006155/0.1414, allocations: 3.782 MB / 487.9 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004917/0.1464, allocations: 2.29 MB / 490.2 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.1489, allocations: 1.222 MB / 491.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003321/0.1523, allocations: 1.525 MB / 493 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009729/0.1533, allocations: 204 kB / 493.2 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002137/0.1554, allocations: 395.7 kB / 493.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001259/0.1567, allocations: 0.7161 MB / 494.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001727/0.1584, allocations: 0.707 MB / 495 MB, free: 180 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007228/0.1657, allocations: 5.239 MB / 0.4885 GB, free: 10.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.1657, allocations: 0 / 0.4885 GB, free: 10.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.1657, allocations: 0 / 0.4885 GB, free: 10.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002437/0.166, allocations: 0 / 0.4885 GB, free: 10.92 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.01048/0.1765, allocations: 3.583 MB / 0.492 GB, free: 7.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1765, allocations: 8.031 kB / 0.492 GB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004543/0.1811, allocations: 0.7531 MB / 0.4927 GB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005491/0.1866, allocations: 2.16 MB / 0.4948 GB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002633/0.1869, allocations: 238.3 kB / 0.4951 GB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/0.188, allocations: 311.9 kB / 0.4954 GB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01087/0.1989, allocations: 4.157 MB / 0.4994 GB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001499/0.1991, allocations: 0 / 0.4994 GB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008856/0.2, allocations: 128 kB / 0.4995 GB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001762/0.2002, allocations: 142.2 kB / 0.4997 GB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008117/0.2083, allocations: 3.495 MB / 0.5031 GB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02523/0.2335, allocations: 13.26 MB / 0.516 GB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006049/0.2396, allocations: 5.498 MB / 0.5214 GB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002011/0.2417, allocations: 1.091 MB / 0.5225 GB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006127/0.2478, allocations: 3.056 MB / 0.5255 GB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.619e-05/0.2479, allocations: 43.56 kB / 0.5255 GB, free: 3.582 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 5.37e-06/0.2479, allocations: 3.938 kB / 0.5255 GB, free: 3.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.2719/0.5198, allocations: 4.677 MB / 0.5301 GB, free: 64.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.5199, allocations: 66.09 kB / 0.5301 GB, free: 64.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003411/0.5233, allocations: 1.586 MB / 0.5317 GB, free: 64.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00021/0.5236, allocations: 44.48 kB / 0.5317 GB, free: 64.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.5247, allocations: 1.425 MB / 0.5331 GB, free: 63.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004549/0.5252, allocations: 391 kB / 0.5335 GB, free: 63.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.5253, allocations: 29.28 kB / 0.5335 GB, free: 63.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.5254, allocations: 364 kB / 0.5339 GB, free: 63.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.5266, allocations: 0.5758 MB / 0.5344 GB, free: 63.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.528, allocations: 1.057 MB / 0.5355 GB, free: 62.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.5297, allocations: 0.7697 MB / 0.5362 GB, free: 62.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.31e-05/0.5297, allocations: 4.219 kB / 0.5362 GB, free: 62.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.004027/0.5337, allocations: 2.05 MB / 0.5382 GB, free: 62.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.5338, allocations: 18.02 kB / 0.5382 GB, free: 62.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.632e-05/0.5338, allocations: 11.72 kB / 0.5382 GB, free: 62.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004318/0.5343, allocations: 132.3 kB / 0.5384 GB, free: 62.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.5357, allocations: 371 kB / 0.5387 GB, free: 62.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/0.5382, allocations: 3.083 MB / 0.5417 GB, free: 59.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.5396, allocations: 71.53 kB / 0.5418 GB, free: 59.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/0.5397, allocations: 69.73 kB / 0.5419 GB, free: 59.61 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 (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%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002057/0.5418, allocations: 0.9607 MB / 0.5428 GB, free: 59.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006363/0.5425, allocations: 171.3 kB / 0.543 GB, free: 59.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005006/0.5475, allocations: 1.819 MB / 0.5447 GB, free: 58.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.5475, allocations: 10.56 kB / 0.5448 GB, free: 58.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-05/0.5476, allocations: 5.438 kB / 0.5448 GB, free: 58.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.073e-05/0.5476, allocations: 10.19 kB / 0.5448 GB, free: 58.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.5576, allocations: 4.368 MB / 0.549 GB, free: 56.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.5577, allocations: 2.156 kB / 0.549 GB, free: 56.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008824/0.5586, allocations: 179.2 kB / 0.5492 GB, free: 56.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009334/0.5595, allocations: 316.2 kB / 0.5495 GB, free: 56.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.5597, allocations: 35.19 kB / 0.5495 GB, free: 56.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006901/0.5666, allocations: 7.48 MB / 0.5569 GB, free: 49.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5666, allocations: 0 / 0.5569 GB, free: 49.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004053/0.5707, allocations: 2.573 MB / 0.5594 GB, free: 48.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000929/0.5716, allocations: 372.1 kB / 0.5597 GB, free: 48.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000454/0.5721, allocations: 27.66 kB / 0.5597 GB, free: 48.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009422/0.5731, allocations: 62.91 kB / 0.5598 GB, free: 48.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.5733, allocations: 85.84 kB / 0.5599 GB, free: 48.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.437e-05/0.5734, allocations: 36.75 kB / 0.5599 GB, free: 48.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001963/0.5753, allocations: 1.076 MB / 0.561 GB, free: 47.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5754, allocations: 0 / 0.561 GB, free: 47.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002326/0.5777, allocations: 0.5104 MB / 0.5615 GB, free: 47.84 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 (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.0003588/0.5781, allocations: 155.8 kB / 0.5616 GB, free: 47.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.5808, allocations: 1.73 MB / 0.5633 GB, free: 46.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.5808, allocations: 3.812 kB / 0.5633 GB, free: 46.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.5826, allocations: 1.227 MB / 0.5645 GB, free: 45.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002503/0.5851, allocations: 0.4916 MB / 0.565 GB, free: 45.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009812/0.5949, allocations: 6.552 MB / 0.5714 GB, free: 40.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002078/0.597, allocations: 2.237 MB / 0.5736 GB, free: 38.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001684/0.5987, allocations: 371.3 kB / 0.5739 GB, free: 37.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.5992, allocations: 119.4 kB / 0.574 GB, free: 37.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.023e-06/0.5992, allocations: 4 kB / 0.574 GB, free: 37.84 MB / 366.1 MB Notification: Performance of Templates: time 0.04056/0.6398, allocations: 23.53 MB / 0.597 GB, free: 14.55 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: