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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007282/0.007282, allocations: 101.2 kB / 15.73 MB, free: 6.445 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.424/1.424, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001402/0.001402, allocations: 184.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03787/0.03787, allocations: 8.799 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 87.86 kB / 463.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09609, allocations: 51.56 MB / 0.5029 GB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01562/0.1117, allocations: 13.38 MB / 0.516 GB, free: 12.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009849/0.1216, allocations: 4.434 MB / 0.5203 GB, free: 8.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00249/0.1242, allocations: 91.56 kB / 0.5204 GB, free: 7.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00349/0.1277, allocations: 1.025 MB / 0.5214 GB, free: 6.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005228/0.133, allocations: 1.289 MB / 0.5227 GB, free: 5.637 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.002772/0.1358, allocations: 0.8685 MB / 0.5235 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005803/0.1416, allocations: 3.81 MB / 0.5272 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2172/0.3588, allocations: 3.339 MB / 0.5305 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003353/0.3622, allocations: 1.792 MB / 0.5323 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003364/0.3656, allocations: 2.001 MB / 0.5342 GB, free: 4.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001191/0.3668, allocations: 0.4908 MB / 0.5347 GB, free: 4.613 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001702/0.3686, allocations: 0.6819 MB / 0.5354 GB, free: 4.613 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008767/0.3694, allocations: 1.074 MB / 0.5364 GB, free: 4.488 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002353/0.3718, allocations: 2.041 MB / 0.5384 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007575/0.3794, allocations: 6.409 MB / 0.5447 GB, free: 3.348 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3794, allocations: 0 / 0.5447 GB, free: 3.348 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3794, allocations: 0 / 0.5447 GB, free: 3.348 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.3796, allocations: 0 / 0.5447 GB, free: 3.348 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.01094/0.3905, allocations: 4.176 MB / 0.5487 GB, free: 1.812 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3906, allocations: 10.75 kB / 0.5487 GB, free: 1.812 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007946/0.3914, allocations: 497 kB / 0.5492 GB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003939/0.3953, allocations: 0.7483 MB / 0.5499 GB, free: 1.559 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004182/0.3995, allocations: 2.321 MB / 0.5522 GB, free: 1.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.3997, allocations: 235.6 kB / 0.5524 GB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005585/0.4003, allocations: 314.5 kB / 0.5527 GB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007343/0.4076, allocations: 4.169 MB / 0.5568 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.63e-05/0.4077, allocations: 6.344 kB / 0.5568 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003384/0.4081, allocations: 134.3 kB / 0.5569 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001691/0.4082, allocations: 141.8 kB / 0.5571 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006248/0.4145, allocations: 3.51 MB / 0.5605 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01969/0.4342, allocations: 13.04 MB / 0.5732 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005349/0.4396, allocations: 5.506 MB / 0.5786 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.4414, allocations: 1.056 MB / 0.5796 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00528/0.4467, allocations: 3.036 MB / 0.5826 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.4467, allocations: 47.5 kB / 0.5827 GB, free: 9.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 2.284e-06/0.4467, allocations: 0 / 0.5827 GB, free: 9.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.008929/0.4556, allocations: 4.616 MB / 0.5872 GB, free: 4.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.4557, allocations: 64.41 kB / 0.5872 GB, free: 4.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/0.4581, allocations: 1.602 MB / 0.5888 GB, free: 2.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.133e-05/0.4582, allocations: 45.7 kB / 0.5888 GB, free: 2.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.4592, allocations: 1.421 MB / 0.5902 GB, free: 1.332 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003247/0.4596, allocations: 392.2 kB / 0.5906 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004178/0.46, allocations: 275.3 kB / 0.5909 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4601, allocations: 305.1 kB / 0.5911 GB, free: 384 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009756/0.4611, allocations: 0.5661 MB / 0.5917 GB, free: 15.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.4624, allocations: 1.058 MB / 0.5927 GB, free: 14.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002301/0.4647, allocations: 1.722 MB / 0.5944 GB, free: 12.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.4647, allocations: 8 kB / 0.5944 GB, free: 12.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003324/0.4681, allocations: 2.036 MB / 0.5964 GB, free: 10.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.4681, allocations: 12 kB / 0.5964 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/0.4682, allocations: 16 kB / 0.5964 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003983/0.4686, allocations: 149.5 kB / 0.5966 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.4699, allocations: 363.1 kB / 0.5969 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.4725, allocations: 3.374 MB / 0.6002 GB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.4738, allocations: 72.03 kB / 0.6003 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.4739, allocations: 64 kB / 0.6004 GB, free: 6.41 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.001699/0.4756, allocations: 0.9584 MB / 0.6013 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002865/0.4759, allocations: 173.9 kB / 0.6015 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003173/0.4791, allocations: 1.808 MB / 0.6032 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.4791, allocations: 12 kB / 0.6032 GB, free: 3.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.4791, allocations: 8 kB / 0.6032 GB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.4791, allocations: 7.969 kB / 0.6032 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00727/0.4864, allocations: 4.351 MB / 0.6075 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.4864, allocations: 3.984 kB / 0.6075 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008448/0.4873, allocations: 175.8 kB / 0.6077 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009475/0.4883, allocations: 313.4 kB / 0.608 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.689e-05/0.4884, allocations: 35.98 kB / 0.608 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008068/0.4964, allocations: 8.194 MB / 0.616 GB, free: 5.758 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4964, allocations: 0 / 0.616 GB, free: 5.758 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004468/0.5009, allocations: 2.565 MB / 0.6185 GB, free: 3.129 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007742/0.5017, allocations: 374.9 kB / 0.6189 GB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/0.5019, allocations: 24 kB / 0.6189 GB, free: 2.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007937/0.5027, allocations: 59.95 kB / 0.6189 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.5029, allocations: 79.61 kB / 0.619 GB, free: 2.586 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.503, allocations: 35.98 kB / 0.6191 GB, free: 2.551 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001826/0.5048, allocations: 1.095 MB / 0.6201 GB, free: 1.461 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5049, allocations: 0 / 0.6201 GB, free: 1.461 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001863/0.5067, allocations: 0.5118 MB / 0.6206 GB, free: 0.9492 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.004566/0.5113, allocations: 3.164 MB / 0.6237 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003011/0.5144, allocations: 1.725 MB / 0.6254 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5144, allocations: 0 / 0.6254 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001869/0.5163, allocations: 1.218 MB / 0.6266 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002494/0.5188, allocations: 0.5072 MB / 0.6271 GB, free: 10.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02943/0.5482, allocations: 17.86 MB / 0.6445 GB, free: 7.773 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00214/0.5504, allocations: 2.241 MB / 0.6467 GB, free: 5.504 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00134/0.5518, allocations: 375.3 kB / 0.6471 GB, free: 5.133 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/0.5533, allocations: 1.109 MB / 0.6481 GB, free: 4.023 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5533, allocations: 0 / 0.6481 GB, free: 4.023 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09251/0.6458, allocations: 47.68 MB / 0.6947 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.32, allocations: 15.8 kB / 0.6947 GB, free: 4.727 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)