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.001589/0.001589, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 239.3 MB, free: 4.609 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.001485/0.001485, allocations: 196.4 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03515/0.03515, allocations: 8.79 MB / 348.5 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 78.27 kB / 411.2 MB, free: 42.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08498/0.08681, allocations: 51.57 MB / 462.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01475/0.1016, allocations: 13.39 MB / 476.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007814/0.1095, allocations: 4.426 MB / 480.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001832/0.1113, allocations: 83.69 kB / 480.7 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002931/0.1143, allocations: 1.025 MB / 481.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004522/0.1188, allocations: 1.293 MB / 483 MB, free: 9.949 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.002405/0.1213, allocations: 0.8644 MB / 483.8 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004934/0.1262, allocations: 3.788 MB / 487.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005045/0.1313, allocations: 3.343 MB / 491 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003032/0.1343, allocations: 1.772 MB / 492.7 MB, free: 100 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003772/0.1381, allocations: 2 MB / 494.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001713/0.1399, allocations: 496 kB / 495.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002533/0.1424, allocations: 0.6988 MB / 495.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001625/0.1441, allocations: 1.067 MB / 497 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003409/0.1475, allocations: 2.042 MB / 499 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007811/0.1553, allocations: 6.36 MB / 0.4935 GB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1554, allocations: 0 / 0.4935 GB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1554, allocations: 0 / 0.4935 GB, free: 3.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.00017/0.1556, allocations: 0 / 0.4935 GB, free: 3.406 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.01053/0.1661, allocations: 4.183 MB / 0.4976 GB, free: 15.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1662, allocations: 8.031 kB / 0.4976 GB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007099/0.1669, allocations: 493.6 kB / 0.4981 GB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003918/0.1708, allocations: 0.754 MB / 0.4988 GB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004003/0.1748, allocations: 2.25 MB / 0.501 GB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.175, allocations: 234.7 kB / 0.5013 GB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005301/0.1756, allocations: 315.8 kB / 0.5016 GB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007043/0.1826, allocations: 4.169 MB / 0.5056 GB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.236e-05/0.1827, allocations: 3.906 kB / 0.5056 GB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002823/0.183, allocations: 128 kB / 0.5058 GB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/0.1831, allocations: 146.3 kB / 0.5059 GB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005871/0.189, allocations: 3.499 MB / 0.5093 GB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/0.2081, allocations: 13.22 MB / 0.5222 GB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1657/0.3738, allocations: 5.503 MB / 0.5276 GB, free: 64.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001777/0.3756, allocations: 1.079 MB / 0.5287 GB, free: 64.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003999/0.3796, allocations: 3.037 MB / 0.5316 GB, free: 63.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.3797, allocations: 43 kB / 0.5317 GB, free: 63.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 2.194e-06/0.3797, allocations: 0.75 kB / 0.5317 GB, free: 63.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.007633/0.3873, allocations: 4.617 MB / 0.5362 GB, free: 62.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.448e-05/0.3874, allocations: 66.69 kB / 0.5362 GB, free: 62.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002025/0.3894, allocations: 1.599 MB / 0.5378 GB, free: 61.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/0.3895, allocations: 45.08 kB / 0.5378 GB, free: 61.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007462/0.3902, allocations: 1.426 MB / 0.5392 GB, free: 61.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.3904, allocations: 394.5 kB / 0.5396 GB, free: 60.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003753/0.3908, allocations: 274 kB / 0.5399 GB, free: 60.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.793e-05/0.3909, allocations: 303.1 kB / 0.5402 GB, free: 60.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009065/0.3918, allocations: 0.5633 MB / 0.5407 GB, free: 60.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.3929, allocations: 1.063 MB / 0.5418 GB, free: 60 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002032/0.395, allocations: 1.725 MB / 0.5434 GB, free: 58.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.395, allocations: 8.562 kB / 0.5434 GB, free: 58.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003166/0.3982, allocations: 2.042 MB / 0.5454 GB, free: 57.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.3982, allocations: 13.5 kB / 0.5455 GB, free: 57.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/0.3983, allocations: 16.78 kB / 0.5455 GB, free: 57.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004209/0.3987, allocations: 137.9 kB / 0.5456 GB, free: 57.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.4001, allocations: 359.7 kB / 0.5459 GB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/0.4022, allocations: 3.378 MB / 0.5492 GB, free: 54.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.4034, allocations: 70.05 kB / 0.5493 GB, free: 54.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.4035, allocations: 69.09 kB / 0.5494 GB, free: 54.62 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.001675/0.4052, allocations: 0.9694 MB / 0.5503 GB, free: 54.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002596/0.4055, allocations: 168.8 kB / 0.5505 GB, free: 53.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002921/0.4084, allocations: 1.812 MB / 0.5523 GB, free: 53.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4084, allocations: 11.84 kB / 0.5523 GB, free: 53.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4084, allocations: 7.719 kB / 0.5523 GB, free: 53.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.4084, allocations: 3.703 kB / 0.5523 GB, free: 53.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005116/0.4136, allocations: 4.353 MB / 0.5565 GB, free: 50.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4136, allocations: 2.906 kB / 0.5565 GB, free: 50.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.4144, allocations: 177.8 kB / 0.5567 GB, free: 50.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006905/0.4151, allocations: 314 kB / 0.557 GB, free: 50.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.51e-05/0.4151, allocations: 31.77 kB / 0.557 GB, free: 50.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005097/0.4202, allocations: 8.197 MB / 0.565 GB, free: 43.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4203, allocations: 4.062 kB / 0.565 GB, free: 43.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003169/0.4234, allocations: 2.559 MB / 0.5675 GB, free: 41.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005568/0.424, allocations: 376.6 kB / 0.5679 GB, free: 41.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.4242, allocations: 25.03 kB / 0.5679 GB, free: 41.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007602/0.425, allocations: 55.05 kB / 0.568 GB, free: 41.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.4252, allocations: 96.19 kB / 0.5681 GB, free: 41.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-05/0.4252, allocations: 35.02 kB / 0.5681 GB, free: 41.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001192/0.4264, allocations: 1.09 MB / 0.5692 GB, free: 40.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4265, allocations: 0 / 0.5692 GB, free: 40.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00155/0.428, allocations: 0.5054 MB / 0.5697 GB, free: 40.06 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.003381/0.4314, allocations: 3.167 MB / 0.5727 GB, free: 36.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003091/0.4345, allocations: 1.974 MB / 0.5747 GB, free: 34.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4345, allocations: 1.812 kB / 0.5747 GB, free: 34.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.4359, allocations: 1.224 MB / 0.5759 GB, free: 33.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.4378, allocations: 0.4963 MB / 0.5764 GB, free: 33.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02055/0.4584, allocations: 19.79 MB / 0.5957 GB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.4597, allocations: 2.231 MB / 0.5979 GB, free: 9.516 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001174/0.4609, allocations: 375.4 kB / 0.5982 GB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/0.4619, allocations: 1.112 MB / 0.5993 GB, free: 8.035 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4619, allocations: 0 / 0.5993 GB, free: 8.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07997/0.5419, allocations: 46.32 MB / 0.6445 GB, free: 10.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.81, allocations: 33.66 kB / 0.6446 GB, free: 10.03 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)