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.005308/0.005308, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.343/1.343, 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.001345/0.001345, allocations: 192.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03464/0.03464, allocations: 8.806 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 75.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.09288, allocations: 51.55 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01832/0.1112, allocations: 18.92 MB / 0.5214 GB, free: 7.008 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009812/0.1211, allocations: 5.023 MB / 0.5263 GB, free: 1.969 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003209/0.1243, allocations: 155.6 kB / 0.5264 GB, free: 1.816 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2229/0.3473, allocations: 8.24 MB / 0.5345 GB, free: 3.461 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009436/0.3567, allocations: 2.18 MB / 0.5366 GB, free: 3.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004898/0.3617, allocations: 1.584 MB / 0.5382 GB, free: 3.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01455/0.3762, allocations: 10.75 MB / 0.5487 GB, free: 1.949 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04272/0.419, allocations: 25.3 MB / 0.5734 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01397/0.433, allocations: 6.088 MB / 0.5793 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01555/0.4486, allocations: 6.775 MB / 0.5859 GB, free: 8.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004545/0.4532, allocations: 1.621 MB / 0.5875 GB, free: 7.035 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007921/0.4612, allocations: 1.907 MB / 0.5894 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006798/0.468, allocations: 3.307 MB / 0.5926 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01385/0.4819, allocations: 6.393 MB / 0.5988 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0317/0.5136, allocations: 21.96 MB / 0.6203 GB, free: 5.941 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.5137, allocations: 0 / 0.6203 GB, free: 5.941 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5137, allocations: 0 / 0.6203 GB, free: 5.941 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006789/0.5144, allocations: 0 / 0.6203 GB, free: 5.941 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.04167/0.5561, allocations: 14.01 MB / 0.634 GB, free: 7.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.5562, allocations: 12.02 kB / 0.634 GB, free: 7.918 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006319/0.5625, allocations: 1.57 MB / 0.6355 GB, free: 6.348 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04309/0.6056, allocations: 7.934 MB / 0.6433 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01494/0.6206, allocations: 6.782 MB / 0.6499 GB, free: 7.688 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009459/0.6216, allocations: 0.8084 MB / 0.6507 GB, free: 6.887 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004553/0.6262, allocations: 1.061 MB / 0.6517 GB, free: 5.836 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04336/0.6695, allocations: 17.77 MB / 0.6691 GB, free: 4.043 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000449/0.67, allocations: 19.89 kB / 0.6691 GB, free: 4.023 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003165/0.6732, allocations: 454.9 kB / 0.6695 GB, free: 3.59 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006761/0.6739, allocations: 0.5696 MB / 0.6701 GB, free: 3.016 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03399/0.7079, allocations: 16.21 MB / 0.6859 GB, free: 2.773 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4822/1.19, allocations: 52.83 MB / 0.7375 GB, free: 141 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01566/1.206, allocations: 15.75 MB / 0.7529 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006376/1.212, allocations: 3.761 MB / 0.7566 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005557/1.213, allocations: 191.4 kB / 0.7567 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.755e-05/1.213, allocations: 86.59 kB / 0.7568 GB, free: 131 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=492): time 9.769e-06/1.213, allocations: 0 / 0.7568 GB, free: 131 MB / 0.5294 GB Notification: Performance of matching and sorting (n=492): time 0.02214/1.235, allocations: 10.64 MB / 0.7672 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/1.235, allocations: 131.2 kB / 0.7673 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005303/1.241, allocations: 3.5 MB / 0.7708 GB, free: 130 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006158/1.241, allocations: 103.2 kB / 0.7709 GB, free: 130 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001952/1.243, allocations: 4.491 MB / 0.7752 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001335/1.245, allocations: 1.757 MB / 0.777 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00219/1.247, allocations: 1.313 MB / 0.7782 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.651e-05/1.247, allocations: 301.1 kB / 0.7785 GB, free: 127 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004075/1.251, allocations: 3.27 MB / 0.7817 GB, free: 127 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004975/1.256, allocations: 5.613 MB / 0.7872 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009386/1.265, allocations: 9.508 MB / 0.7965 GB, free: 117.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-05/1.265, allocations: 24.88 kB / 0.7965 GB, free: 117.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01474/1.28, allocations: 10.29 MB / 0.8066 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.986e-05/1.28, allocations: 36.38 kB / 0.8066 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/1.28, allocations: 77.53 kB / 0.8067 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002795/1.283, allocations: 1.092 MB / 0.8077 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005464/1.289, allocations: 1.509 MB / 0.8092 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/1.303, allocations: 13.63 MB / 0.8225 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005603/1.309, allocations: 0.8694 MB / 0.8234 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001619/1.31, allocations: 319.9 kB / 0.8237 GB, free: 101.2 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.007242/1.318, allocations: 4.118 MB / 0.8277 GB, free: 97.11 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.319, allocations: 413.3 kB / 0.8281 GB, free: 96.71 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/1.33, allocations: 7.864 MB / 0.8358 GB, free: 88.79 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008186/1.338, allocations: 6.484 MB / 0.8421 GB, free: 82.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-05/1.338, allocations: 15.98 kB / 0.8421 GB, free: 82.23 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.1e-05/1.339, allocations: 27.84 kB / 0.8421 GB, free: 82.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02678/1.365, allocations: 17.54 MB / 0.8593 GB, free: 64.49 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.485e-05/1.365, allocations: 16 kB / 0.8593 GB, free: 64.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003341/1.369, allocations: 0.9517 MB / 0.8602 GB, free: 63.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002404/1.371, allocations: 0.9795 MB / 0.8612 GB, free: 62.53 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004845/1.372, allocations: 124 kB / 0.8613 GB, free: 62.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/1.383, allocations: 13.33 MB / 0.8743 GB, free: 48.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/1.383, allocations: 19.94 kB / 0.8743 GB, free: 48.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01496/1.398, allocations: 12.12 MB / 0.8862 GB, free: 35.88 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002271/1.401, allocations: 1.137 MB / 0.8873 GB, free: 34.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/1.402, allocations: 112 kB / 0.8874 GB, free: 34.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002896/1.405, allocations: 323.7 kB / 0.8877 GB, free: 34.29 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000769/1.405, allocations: 399.7 kB / 0.8881 GB, free: 33.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003609/1.406, allocations: 160 kB / 0.8882 GB, free: 33.74 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003641/1.409, allocations: 2.366 MB / 0.8905 GB, free: 31.38 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.21e-07/1.409, allocations: 0 / 0.8905 GB, free: 31.38 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006823/1.416, allocations: 2.683 MB / 0.8932 GB, free: 28.69 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.01465/1.431, allocations: 12.89 MB / 0.9057 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01095/1.442, allocations: 8.618 MB / 0.9142 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.442, allocations: 4 kB / 0.9142 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005605/1.448, allocations: 4.268 MB / 0.9183 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005479/1.453, allocations: 0.94 MB / 0.9192 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3447/1.798, allocations: 59.68 MB / 0.9775 GB, free: 169.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01285/1.811, allocations: 7.017 MB / 0.9844 GB, free: 166.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00601/1.817, allocations: 2.534 MB / 0.9869 GB, free: 166.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00474/1.821, allocations: 3.645 MB / 0.9904 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of SimCode: time 7.11e-07/1.822, allocations: 4 kB / 0.9904 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2283/2.05, allocations: 132.2 MB / 1.12 GB, free: 45.51 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.68/21.73, allocations: 11.86 kB / 1.12 GB, free: 45.5 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)