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.0007645/0.0007646, allocations: 89.81 kB / 15.36 MB, free: 0.7383 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.299/1.299, allocations: 223.3 MB / 239.4 MB, free: 5.52 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.0009123/0.0009122, allocations: 179.4 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03389/0.03389, allocations: 8.805 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003375, allocations: 10.28 kB / 413.9 MB, free: 42.81 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07501/0.07536, allocations: 52.57 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.0122/0.08759, allocations: 12.59 MB / 479.1 MB, free: 400 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006713/0.09433, allocations: 4.322 MB / 483.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.09554, allocations: 75.69 kB / 483.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00204/0.09759, allocations: 0.9056 MB / 484.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003138/0.1007, allocations: 1.146 MB / 485.5 MB, free: 9.914 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.001694/0.1024, allocations: 0.7947 MB / 486.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004044/0.1065, allocations: 4.054 MB / 490.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002968/0.1095, allocations: 2.761 MB / 493.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/0.111, allocations: 1.245 MB / 494.4 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001683/0.1127, allocations: 1.602 MB / 496 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002985/0.113, allocations: 200 kB / 496.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008629/0.1138, allocations: 411.7 kB / 496.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005799/0.1144, allocations: 0.7237 MB / 497.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.1159, allocations: 1.685 MB / 499 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005019/0.1209, allocations: 5.999 MB / 0.4932 GB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.121, allocations: 0 / 0.4932 GB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.121, allocations: 0 / 0.4932 GB, free: 6.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.691e-05/0.1211, allocations: 0 / 0.4932 GB, free: 6.324 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.008006/0.1291, allocations: 3.548 MB / 0.4966 GB, free: 2.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.1291, allocations: 8.031 kB / 0.4966 GB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00075/0.1299, allocations: 497.6 kB / 0.4971 GB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003777/0.1337, allocations: 0.754 MB / 0.4978 GB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0033/0.137, allocations: 2.211 MB / 0.5 GB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.1371, allocations: 234.7 kB / 0.5002 GB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00045/0.1376, allocations: 319.9 kB / 0.5005 GB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00653/0.1441, allocations: 4.173 MB / 0.5046 GB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.226e-05/0.1442, allocations: 3.906 kB / 0.5046 GB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000289/0.1445, allocations: 135.9 kB / 0.5047 GB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001292/0.1446, allocations: 142.3 kB / 0.5049 GB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005749/0.1504, allocations: 3.523 MB / 0.5083 GB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01757/0.168, allocations: 13.27 MB / 0.5213 GB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005178/0.1732, allocations: 5.514 MB / 0.5266 GB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.175, allocations: 1.091 MB / 0.5277 GB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1561/0.3311, allocations: 3.047 MB / 0.5307 GB, free: 64.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.3312, allocations: 50.25 kB / 0.5307 GB, free: 64.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.105e-06/0.3312, allocations: 3.625 kB / 0.5307 GB, free: 64.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.00873/0.3399, allocations: 4.664 MB / 0.5353 GB, free: 62.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.34, allocations: 67.16 kB / 0.5354 GB, free: 62.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002887/0.3429, allocations: 1.608 MB / 0.5369 GB, free: 62.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.829e-05/0.343, allocations: 43.61 kB / 0.537 GB, free: 62.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008629/0.3439, allocations: 1.425 MB / 0.5384 GB, free: 62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.3441, allocations: 391.4 kB / 0.5387 GB, free: 61.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.3443, allocations: 124.7 kB / 0.5389 GB, free: 61.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.144e-05/0.3444, allocations: 305.6 kB / 0.5391 GB, free: 61.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.3454, allocations: 0.5701 MB / 0.5397 GB, free: 61.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.3467, allocations: 1.071 MB / 0.5407 GB, free: 60.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002524/0.3492, allocations: 1.741 MB / 0.5424 GB, free: 60.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.03e-05/0.3493, allocations: 5.656 kB / 0.5425 GB, free: 60.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003509/0.3528, allocations: 2.061 MB / 0.5445 GB, free: 59.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.3528, allocations: 11.84 kB / 0.5445 GB, free: 59.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.321e-05/0.3529, allocations: 15.94 kB / 0.5445 GB, free: 59.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003886/0.3533, allocations: 146.1 kB / 0.5446 GB, free: 59.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.3547, allocations: 372.1 kB / 0.545 GB, free: 59.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.3567, allocations: 3.09 MB / 0.548 GB, free: 56.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.3579, allocations: 69.22 kB / 0.5481 GB, free: 56.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.3581, allocations: 74.83 kB / 0.5481 GB, free: 56.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 (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.001601/0.3597, allocations: 0.9587 MB / 0.5491 GB, free: 56.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000345/0.36, allocations: 176.4 kB / 0.5492 GB, free: 55.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003183/0.3632, allocations: 1.827 MB / 0.551 GB, free: 55.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.3632, allocations: 15.98 kB / 0.551 GB, free: 55.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.69e-05/0.3633, allocations: 5.375 kB / 0.5511 GB, free: 55.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.3633, allocations: 6.688 kB / 0.5511 GB, free: 55.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006583/0.3699, allocations: 4.367 MB / 0.5553 GB, free: 52.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.3699, allocations: 0 / 0.5553 GB, free: 52.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000773/0.3707, allocations: 195.2 kB / 0.5555 GB, free: 52.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007528/0.3714, allocations: 306.9 kB / 0.5558 GB, free: 52.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.973e-05/0.3715, allocations: 31.69 kB / 0.5558 GB, free: 52.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005219/0.3768, allocations: 7.483 MB / 0.5631 GB, free: 46.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3768, allocations: 0 / 0.5631 GB, free: 46.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003433/0.3802, allocations: 2.588 MB / 0.5657 GB, free: 44.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000675/0.3809, allocations: 376.1 kB / 0.566 GB, free: 44.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003313/0.3812, allocations: 27.88 kB / 0.5661 GB, free: 44.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008649/0.3821, allocations: 67.64 kB / 0.5661 GB, free: 44.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.3823, allocations: 83.25 kB / 0.5662 GB, free: 44.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.325e-05/0.3824, allocations: 27.55 kB / 0.5662 GB, free: 44.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001507/0.3839, allocations: 1.096 MB / 0.5673 GB, free: 43.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3839, allocations: 3.938 kB / 0.5673 GB, free: 43.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001731/0.3856, allocations: 0.5011 MB / 0.5678 GB, free: 43.6 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.003727/0.3893, allocations: 3.204 MB / 0.5709 GB, free: 40.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002571/0.3919, allocations: 1.737 MB / 0.5726 GB, free: 39.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.392, allocations: 0 / 0.5726 GB, free: 39.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/0.3935, allocations: 1.236 MB / 0.5738 GB, free: 37.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.3962, allocations: 497.8 kB / 0.5743 GB, free: 37.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03117/0.4274, allocations: 21.22 MB / 0.595 GB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002042/0.4294, allocations: 2.237 MB / 0.5972 GB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001314/0.4308, allocations: 375.3 kB / 0.5976 GB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.432, allocations: 1.108 MB / 0.5986 GB, free: 10.93 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.432, allocations: 0 / 0.5986 GB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06835/0.5003, allocations: 44.6 MB / 0.6422 GB, free: 14.7 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.5005, allocations: 220.5 kB / 0.6424 GB, free: 14.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.505/3.005, allocations: 0 / 0.6424 GB, free: 14.45 MB / 414.1 MB (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)