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.001168/0.001168, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.301/1.301, allocations: 222.9 MB / 239 MB, free: 4.738 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.001234/0.001234, allocations: 200.4 kB / 289.3 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03447/0.03447, allocations: 8.805 MB / 348.2 MB, free: 4.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 82.28 kB / 410.7 MB, free: 42.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07595/0.07748, allocations: 51.57 MB / 462.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01285/0.09036, allocations: 13.24 MB / 475.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00676/0.09715, allocations: 4.345 MB / 479.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009887/0.09817, allocations: 83.69 kB / 479.9 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002003/0.1002, allocations: 0.9096 MB / 480.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002474/0.1027, allocations: 1.162 MB / 482 MB, free: 10.93 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.001518/0.1042, allocations: 0.7918 MB / 482.8 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003771/0.108, allocations: 3.903 MB / 486.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003334/0.1113, allocations: 3.355 MB / 490 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001756/0.1131, allocations: 1.698 MB / 491.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002022/0.1152, allocations: 1.985 MB / 493.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005096/0.1157, allocations: 496 kB / 494.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.1168, allocations: 0.695 MB / 494.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008063/0.1176, allocations: 1.064 MB / 496 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001855/0.1194, allocations: 2.038 MB / 498 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005166/0.1246, allocations: 6.341 MB / 0.4925 GB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1246, allocations: 0 / 0.4925 GB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1246, allocations: 0 / 0.4925 GB, free: 4.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.259e-05/0.1247, allocations: 0 / 0.4925 GB, free: 4.449 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.008484/0.1332, allocations: 4.179 MB / 0.4966 GB, free: 204 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1333, allocations: 8.031 kB / 0.4966 GB, free: 196 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006957/0.134, allocations: 0.4898 MB / 0.4971 GB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00381/0.1378, allocations: 0.7501 MB / 0.4978 GB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003156/0.141, allocations: 2.211 MB / 0.5 GB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.1411, allocations: 238.7 kB / 0.5002 GB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004351/0.1416, allocations: 311.9 kB / 0.5005 GB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006176/0.1477, allocations: 4.173 MB / 0.5046 GB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.551e-05/0.1478, allocations: 3.906 kB / 0.5046 GB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/0.1481, allocations: 128 kB / 0.5047 GB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.1482, allocations: 142.3 kB / 0.5049 GB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005287/0.1535, allocations: 3.503 MB / 0.5083 GB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/0.1705, allocations: 13.21 MB / 0.5212 GB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005051/0.1756, allocations: 5.504 MB / 0.5265 GB, free: 272 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1522/0.3278, allocations: 1.072 MB / 0.5276 GB, free: 65.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004116/0.332, allocations: 3.04 MB / 0.5306 GB, free: 64.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.332, allocations: 47.44 kB / 0.5306 GB, free: 64.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 2.224e-06/0.332, allocations: 0 / 0.5306 GB, free: 64.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.007586/0.3396, allocations: 4.619 MB / 0.5351 GB, free: 63.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.3396, allocations: 63.78 kB / 0.5352 GB, free: 63.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/0.3417, allocations: 1.6 MB / 0.5367 GB, free: 63.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.64e-05/0.3418, allocations: 43.95 kB / 0.5368 GB, free: 63.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006919/0.3425, allocations: 1.42 MB / 0.5382 GB, free: 62.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.3427, allocations: 390.9 kB / 0.5385 GB, free: 62.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003725/0.3431, allocations: 279.2 kB / 0.5388 GB, free: 62.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.448e-05/0.3431, allocations: 302.5 kB / 0.5391 GB, free: 62.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009127/0.344, allocations: 0.5638 MB / 0.5396 GB, free: 62.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001121/0.3452, allocations: 1.064 MB / 0.5407 GB, free: 61.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/0.3472, allocations: 1.729 MB / 0.5424 GB, free: 60.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.3472, allocations: 6.062 kB / 0.5424 GB, free: 60.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.002896/0.3501, allocations: 2.036 MB / 0.5444 GB, free: 59.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.3501, allocations: 15.83 kB / 0.5444 GB, free: 59.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/0.3502, allocations: 19.94 kB / 0.5444 GB, free: 59.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003401/0.3505, allocations: 140.4 kB / 0.5445 GB, free: 59.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.3518, allocations: 363.5 kB / 0.5449 GB, free: 59.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.3537, allocations: 3.37 MB / 0.5482 GB, free: 56.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.3548, allocations: 71.91 kB / 0.5482 GB, free: 56.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.3549, allocations: 66.69 kB / 0.5483 GB, free: 56.11 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.001341/0.3563, allocations: 0.9732 MB / 0.5493 GB, free: 55.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.3565, allocations: 171.1 kB / 0.5494 GB, free: 55.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/0.3595, allocations: 1.813 MB / 0.5512 GB, free: 54.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.3596, allocations: 11.12 kB / 0.5512 GB, free: 54.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3596, allocations: 3.969 kB / 0.5512 GB, free: 54.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.3596, allocations: 5.125 kB / 0.5512 GB, free: 54.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005212/0.3648, allocations: 4.355 MB / 0.5555 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.3648, allocations: 3.938 kB / 0.5555 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000784/0.3656, allocations: 172.4 kB / 0.5556 GB, free: 52.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007318/0.3664, allocations: 312 kB / 0.5559 GB, free: 52.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.99e-05/0.3665, allocations: 33.69 kB / 0.556 GB, free: 52.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005148/0.3716, allocations: 8.192 MB / 0.564 GB, free: 44.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3716, allocations: 0 / 0.564 GB, free: 44.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.3748, allocations: 2.571 MB / 0.5665 GB, free: 43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004552/0.3753, allocations: 371 kB / 0.5668 GB, free: 42.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/0.3755, allocations: 27.7 kB / 0.5669 GB, free: 42.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007478/0.3762, allocations: 58.97 kB / 0.5669 GB, free: 42.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.3764, allocations: 87.72 kB / 0.567 GB, free: 42.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.064e-05/0.3765, allocations: 31.17 kB / 0.567 GB, free: 42.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001206/0.3777, allocations: 1.093 MB / 0.5681 GB, free: 41.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3777, allocations: 9.422 kB / 0.5681 GB, free: 41.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001556/0.3793, allocations: 0.5039 MB / 0.5686 GB, free: 41.45 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.003339/0.3826, allocations: 3.173 MB / 0.5717 GB, free: 38.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00299/0.3856, allocations: 1.97 MB / 0.5736 GB, free: 36.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3856, allocations: 0 / 0.5736 GB, free: 36.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.387, allocations: 1.218 MB / 0.5748 GB, free: 34.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.3888, allocations: 0.504 MB / 0.5753 GB, free: 34.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02684/0.4156, allocations: 21.04 MB / 0.5958 GB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/0.4171, allocations: 2.234 MB / 0.598 GB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.4183, allocations: 375.3 kB / 0.5984 GB, free: 9.285 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.4193, allocations: 1.108 MB / 0.5995 GB, free: 8.176 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4193, allocations: 4 kB / 0.5995 GB, free: 8.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07115/0.4905, allocations: 46.12 MB / 0.6445 GB, free: 10.44 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.4907, allocations: 217.4 kB / 0.6447 GB, free: 10.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.649/3.139, allocations: 3.938 kB / 0.6447 GB, free: 10.18 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)