Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.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.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",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.008995/0.008995, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.383/1.383, allocations: 222.9 MB / 239.4 MB, free: 4.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.001428/0.001428, allocations: 196.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03405/0.03405, allocations: 8.795 MB / 348.7 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 83.88 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1138, allocations: 51.55 MB / 0.5029 GB, free: 9.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005802/0.1196, allocations: 3.832 MB / 0.5066 GB, free: 6.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.1215, allocations: 0.9113 MB / 0.5075 GB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006646/0.1222, allocations: 12 kB / 0.5075 GB, free: 5.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004422/0.1227, allocations: 83.16 kB / 0.5076 GB, free: 5.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008626/0.1236, allocations: 154.6 kB / 0.5078 GB, free: 4.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005541/0.1242, allocations: 175.8 kB / 0.5079 GB, free: 4.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.1252, allocations: 0.6423 MB / 0.5086 GB, free: 4.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000497/0.1257, allocations: 276.9 kB / 0.5088 GB, free: 3.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004594/0.1262, allocations: 259.1 kB / 0.5091 GB, free: 3.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000503/0.1267, allocations: 278.8 kB / 0.5093 GB, free: 3.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001463/0.1268, allocations: 68 kB / 0.5094 GB, free: 3.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.127, allocations: 68 kB / 0.5095 GB, free: 3.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1271, allocations: 135.5 kB / 0.5096 GB, free: 3.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003329/0.1275, allocations: 302.6 kB / 0.5099 GB, free: 2.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008639/0.1283, allocations: 0.7317 MB / 0.5106 GB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1283, allocations: 0 / 0.5106 GB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1283, allocations: 0 / 0.5106 GB, free: 2.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.758e-05/0.1284, allocations: 0 / 0.5106 GB, free: 2.043 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00185/0.1302, allocations: 0.8494 MB / 0.5114 GB, free: 1.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.1303, allocations: 12.03 kB / 0.5114 GB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.1305, allocations: 90.7 kB / 0.5115 GB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.1306, allocations: 60.56 kB / 0.5116 GB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007184/0.1313, allocations: 375.8 kB / 0.5119 GB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.427e-05/0.1314, allocations: 37.69 kB / 0.512 GB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.112e-05/0.1315, allocations: 48.38 kB / 0.512 GB, free: 496 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009947/0.1325, allocations: 0.5226 MB / 0.5125 GB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.1325, allocations: 0 / 0.5125 GB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.1326, allocations: 23.94 kB / 0.5126 GB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1326, allocations: 12 kB / 0.5126 GB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008491/0.1334, allocations: 395.7 kB / 0.5129 GB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002965/0.1364, allocations: 1.899 MB / 0.5148 GB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006873/0.1371, allocations: 303.5 kB / 0.5151 GB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000531/0.1377, allocations: 233.3 kB / 0.5153 GB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.1377, allocations: 4.281 kB / 0.5153 GB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.1377, allocations: 38.78 kB / 0.5154 GB, free: 12.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.724e-06/0.1378, allocations: 0 / 0.5154 GB, free: 12.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004555/0.1423, allocations: 1.731 MB / 0.517 GB, free: 11.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.1424, allocations: 55.84 kB / 0.5171 GB, free: 11.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.1427, allocations: 307.2 kB / 0.5174 GB, free: 10.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.1427, allocations: 33.7 kB / 0.5174 GB, free: 10.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.1429, allocations: 276.9 kB / 0.5177 GB, free: 10.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.1431, allocations: 166.5 kB / 0.5178 GB, free: 10.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.1432, allocations: 86.25 kB / 0.5179 GB, free: 10.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1433, allocations: 346.8 kB / 0.5183 GB, free: 9.824 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.1437, allocations: 153 kB / 0.5184 GB, free: 9.676 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004162/0.1441, allocations: 242.5 kB / 0.5186 GB, free: 9.402 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007426/0.1449, allocations: 409.1 kB / 0.519 GB, free: 8.973 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.1449, allocations: 4 kB / 0.519 GB, free: 8.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001088/0.146, allocations: 0.5599 MB / 0.5196 GB, free: 8.395 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.146, allocations: 5.562 kB / 0.5196 GB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.146, allocations: 4 kB / 0.5196 GB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/0.1463, allocations: 97.55 kB / 0.5197 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.1468, allocations: 107.9 kB / 0.5198 GB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/0.1498, allocations: 3.598 MB / 0.5233 GB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.1501, allocations: 19.98 kB / 0.5233 GB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-05/0.1501, allocations: 19.94 kB / 0.5233 GB, free: 4.266 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002234/0.1504, allocations: 189.7 kB / 0.5235 GB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-05/0.1504, allocations: 39.77 kB / 0.5235 GB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.1505, allocations: 51.92 kB / 0.5236 GB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.1506, allocations: 4 kB / 0.5236 GB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.1506, allocations: 8 kB / 0.5236 GB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1506, allocations: 3.984 kB / 0.5236 GB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.1523, allocations: 1.125 MB / 0.5247 GB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.1523, allocations: 4 kB / 0.5247 GB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003863/0.1527, allocations: 83.88 kB / 0.5248 GB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000247/0.153, allocations: 101.6 kB / 0.5249 GB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.153, allocations: 15.92 kB / 0.5249 GB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1911/0.3441, allocations: 3.588 MB / 0.5284 GB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3442, allocations: 1.125 kB / 0.5284 GB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.3454, allocations: 0.775 MB / 0.5292 GB, free: 22.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.3456, allocations: 141.8 kB / 0.5293 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.751e-05/0.3456, allocations: 12.86 kB / 0.5293 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.3459, allocations: 33.56 kB / 0.5293 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.964e-05/0.346, allocations: 31.81 kB / 0.5294 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.3461, allocations: 15.3 kB / 0.5294 GB, free: 22.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001891/0.3463, allocations: 206.7 kB / 0.5296 GB, free: 22.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3463, allocations: 3.812 kB / 0.5296 GB, free: 22.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006593/0.3469, allocations: 120.1 kB / 0.5297 GB, free: 22.46 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (transformer.converter1.i,transformer.eddyCurrent.Phi) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00146/0.3484, allocations: 1.326 MB / 0.531 GB, free: 21.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.3495, allocations: 0.6609 MB / 0.5317 GB, free: 21.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3495, allocations: 0 / 0.5317 GB, free: 21.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006302/0.3501, allocations: 489.9 kB / 0.5321 GB, free: 21.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.3505, allocations: 53.58 kB / 0.5322 GB, free: 21.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005222/0.3558, allocations: 4.034 MB / 0.5361 GB, free: 19.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.3561, allocations: 0.8468 MB / 0.5369 GB, free: 18.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.3563, allocations: 39.5 kB / 0.537 GB, free: 18.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.3565, allocations: 171.6 kB / 0.5371 GB, free: 18.88 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3565, allocations: 0 / 0.5371 GB, free: 18.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03661/0.3931, allocations: 8.883 MB / 0.5458 GB, free: 17.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.986/10.38, allocations: 6.812 kB / 0.5458 GB, free: 17.52 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Magnetic.TestTransformer_res.csv --start-time 0 --stop-time 0.08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)