Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.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.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",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.004893/0.004893, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.431/1.431, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.00145/0.00145, allocations: 188.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03804/0.03804, allocations: 8.782 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002374/0.002374, allocations: 87.86 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1056, allocations: 51.56 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.02136/0.127, allocations: 18.93 MB / 0.5214 GB, free: 6.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.1377, allocations: 5.023 MB / 0.5263 GB, free: 1.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003229/0.141, allocations: 155.6 kB / 0.5265 GB, free: 1.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2383/0.3793, allocations: 8.202 MB / 0.5345 GB, free: 3.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007052/0.3864, allocations: 2.169 MB / 0.5366 GB, free: 3.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004461/0.3909, allocations: 1.581 MB / 0.5381 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0138/0.4047, allocations: 10.76 MB / 0.5486 GB, free: 2.008 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04395/0.4487, allocations: 25.34 MB / 0.5734 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01314/0.4619, allocations: 6.075 MB / 0.5793 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01361/0.4755, allocations: 6.774 MB / 0.5859 GB, free: 8.875 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004825/0.4804, allocations: 1.621 MB / 0.5875 GB, free: 7.254 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007246/0.4876, allocations: 1.913 MB / 0.5894 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006276/0.494, allocations: 3.3 MB / 0.5926 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01375/0.5078, allocations: 6.396 MB / 0.5988 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02969/0.5375, allocations: 21.96 MB / 0.6203 GB, free: 6.148 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.066e-06/0.5375, allocations: 0 / 0.6203 GB, free: 6.148 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.5376, allocations: 0 / 0.6203 GB, free: 6.148 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006729/0.5382, allocations: 0 / 0.6203 GB, free: 6.148 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.04195/0.5802, allocations: 14.01 MB / 0.634 GB, free: 8.137 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.5803, allocations: 12.02 kB / 0.634 GB, free: 8.125 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00541/0.5857, allocations: 1.565 MB / 0.6355 GB, free: 6.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04561/0.6313, allocations: 7.937 MB / 0.6433 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01609/0.6474, allocations: 6.782 MB / 0.6499 GB, free: 7.895 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009042/0.6484, allocations: 0.8106 MB / 0.6507 GB, free: 7.094 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004644/0.653, allocations: 1.057 MB / 0.6517 GB, free: 6.047 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04892/0.702, allocations: 17.77 MB / 0.6691 GB, free: 4.246 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005536/0.7026, allocations: 23.83 kB / 0.6691 GB, free: 4.223 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004164/0.7068, allocations: 448.2 kB / 0.6695 GB, free: 3.793 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007408/0.7075, allocations: 0.5696 MB / 0.6701 GB, free: 3.219 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03624/0.7438, allocations: 16.21 MB / 0.6859 GB, free: 2.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5098/1.254, allocations: 52.84 MB / 0.7375 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01597/1.27, allocations: 15.74 MB / 0.7529 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006469/1.276, allocations: 3.755 MB / 0.7565 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004646/1.277, allocations: 198.3 kB / 0.7567 GB, free: 131 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.372e-05/1.277, allocations: 85.44 kB / 0.7568 GB, free: 131 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=492): time 6.512e-06/1.277, allocations: 0 / 0.7568 GB, free: 131 MB / 0.5294 GB Notification: Performance of matching and sorting (n=492): time 0.0213/1.298, allocations: 10.64 MB / 0.7672 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/1.298, allocations: 132.9 kB / 0.7673 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004844/1.303, allocations: 3.503 MB / 0.7708 GB, free: 130 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006472/1.304, allocations: 105.5 kB / 0.7709 GB, free: 130 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002185/1.306, allocations: 4.494 MB / 0.7752 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00165/1.307, allocations: 1.75 MB / 0.777 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001859/1.309, allocations: 1.308 MB / 0.7782 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.439e-05/1.309, allocations: 301.1 kB / 0.7785 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004389/1.314, allocations: 3.275 MB / 0.7817 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005641/1.319, allocations: 5.616 MB / 0.7872 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009901/1.329, allocations: 9.51 MB / 0.7965 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.523e-05/1.329, allocations: 22.66 kB / 0.7965 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01687/1.346, allocations: 10.29 MB / 0.8066 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.034e-05/1.346, allocations: 36.47 kB / 0.8066 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001379/1.347, allocations: 74.91 kB / 0.8067 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002923/1.35, allocations: 1.088 MB / 0.8077 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005358/1.355, allocations: 1.525 MB / 0.8092 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/1.368, allocations: 13.63 MB / 0.8225 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005912/1.374, allocations: 0.8694 MB / 0.8234 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.376, allocations: 320 kB / 0.8237 GB, free: 101.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 341 * 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 (790): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008321/1.384, allocations: 4.11 MB / 0.8277 GB, free: 97.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/1.386, allocations: 417.3 kB / 0.8281 GB, free: 96.81 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/1.399, allocations: 7.86 MB / 0.8358 GB, free: 88.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008794/1.408, allocations: 6.484 MB / 0.8421 GB, free: 82.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-05/1.408, allocations: 16 kB / 0.8421 GB, free: 82.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.117e-05/1.408, allocations: 27.84 kB / 0.8421 GB, free: 82.31 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03376/1.442, allocations: 17.53 MB / 0.8593 GB, free: 64.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.238e-05/1.442, allocations: 16.97 kB / 0.8593 GB, free: 64.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004046/1.446, allocations: 0.9556 MB / 0.8602 GB, free: 63.63 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002784/1.449, allocations: 0.9813 MB / 0.8612 GB, free: 62.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001081/1.45, allocations: 132 kB / 0.8613 GB, free: 62.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01366/1.464, allocations: 13.31 MB / 0.8743 GB, free: 48.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.76e-05/1.464, allocations: 27.81 kB / 0.8743 GB, free: 48.65 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0291/1.493, allocations: 12.12 MB / 0.8861 GB, free: 35.99 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004686/1.498, allocations: 1.137 MB / 0.8873 GB, free: 34.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002218/1.5, allocations: 116 kB / 0.8874 GB, free: 34.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005947/1.506, allocations: 319.6 kB / 0.8877 GB, free: 34.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001509/1.508, allocations: 403.7 kB / 0.8881 GB, free: 34.01 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000555/1.508, allocations: 164 kB / 0.8882 GB, free: 33.85 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005546/1.514, allocations: 2.358 MB / 0.8905 GB, free: 31.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.653e-06/1.514, allocations: 0 / 0.8905 GB, free: 31.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01318/1.527, allocations: 2.686 MB / 0.8931 GB, free: 28.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 2 (sineVoltage_m.plug_p.reference.gamma,sineVoltage_e.plug_p.reference.gamma) * 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 (501): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02859/1.556, allocations: 12.9 MB / 0.9057 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01539/1.571, allocations: 8.621 MB / 0.9142 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-05/1.571, allocations: 4 kB / 0.9142 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007456/1.579, allocations: 4.26 MB / 0.9183 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00739/1.586, allocations: 0.9451 MB / 0.9192 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3774/1.963, allocations: 59.68 MB / 0.9775 GB, free: 169.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01227/1.976, allocations: 7.012 MB / 0.9844 GB, free: 166.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006851/1.983, allocations: 2.542 MB / 0.9869 GB, free: 166.6 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006083/1.989, allocations: 3.639 MB / 0.9904 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.092e-06/1.989, allocations: 0 / 0.9904 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1822/2.171, allocations: 132.2 MB / 1.12 GB, free: 45.53 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.12/22.29, allocations: 11.05 kB / 1.12 GB, free: 45.52 MB / 0.5607 GB (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Machines.EquivalentCircuit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_Machines_EquivalentCircuit.fmu > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)