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.004503/0.004503, allocations: 97.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.377/1.377, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001307/0.001307, allocations: 184.4 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03574/0.03574, allocations: 8.81 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 75.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1096, allocations: 51.55 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.006806/0.1165, allocations: 3.83 MB / 0.5066 GB, free: 6.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.1189, allocations: 0.9192 MB / 0.5075 GB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006095/0.1196, allocations: 11.94 kB / 0.5075 GB, free: 5.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004411/0.12, allocations: 83.16 kB / 0.5076 GB, free: 5.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008672/0.1209, allocations: 162.6 kB / 0.5078 GB, free: 4.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.1216, allocations: 159.8 kB / 0.5079 GB, free: 4.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001171/0.1227, allocations: 0.6463 MB / 0.5086 GB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006233/0.1234, allocations: 284.9 kB / 0.5088 GB, free: 3.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005232/0.1239, allocations: 251.1 kB / 0.5091 GB, free: 3.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005988/0.1245, allocations: 278.8 kB / 0.5093 GB, free: 3.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.1248, allocations: 68 kB / 0.5094 GB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.125, allocations: 71.94 kB / 0.5095 GB, free: 3.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.1252, allocations: 135.5 kB / 0.5096 GB, free: 3.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005495/0.1258, allocations: 306.6 kB / 0.5099 GB, free: 2.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.1269, allocations: 0.7239 MB / 0.5106 GB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.1269, allocations: 7.922 kB / 0.5106 GB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1269, allocations: 0 / 0.5106 GB, free: 2.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.127, allocations: 0 / 0.5106 GB, free: 2.074 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.002503/0.1295, allocations: 0.8416 MB / 0.5114 GB, free: 1.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.1296, allocations: 8.031 kB / 0.5114 GB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002595/0.1298, allocations: 98.7 kB / 0.5115 GB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002717/0.1301, allocations: 68.5 kB / 0.5116 GB, free: 1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.1313, allocations: 367.8 kB / 0.5119 GB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.966e-05/0.1314, allocations: 41.69 kB / 0.512 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.1316, allocations: 52.38 kB / 0.512 GB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.1332, allocations: 0.5148 MB / 0.5125 GB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.1332, allocations: 3.938 kB / 0.5125 GB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.458e-05/0.1333, allocations: 24 kB / 0.5126 GB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.1334, allocations: 12 kB / 0.5126 GB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.1347, allocations: 387.8 kB / 0.5129 GB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004171/0.1389, allocations: 1.891 MB / 0.5148 GB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.14, allocations: 311.4 kB / 0.5151 GB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007763/0.1409, allocations: 229.3 kB / 0.5153 GB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.989e-05/0.1409, allocations: 12.22 kB / 0.5153 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.141, allocations: 34.84 kB / 0.5154 GB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.985e-06/0.141, allocations: 0 / 0.5154 GB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.006489/0.1475, allocations: 1.738 MB / 0.5171 GB, free: 11.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.1475, allocations: 55.84 kB / 0.5171 GB, free: 11.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.1479, allocations: 303.2 kB / 0.5174 GB, free: 10.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.1479, allocations: 29.7 kB / 0.5174 GB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.1481, allocations: 276.8 kB / 0.5177 GB, free: 10.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.1483, allocations: 170.5 kB / 0.5178 GB, free: 10.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.1486, allocations: 86.25 kB / 0.5179 GB, free: 10.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1488, allocations: 346.8 kB / 0.5183 GB, free: 9.859 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006152/0.1494, allocations: 153 kB / 0.5184 GB, free: 9.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006837/0.1501, allocations: 234.6 kB / 0.5186 GB, free: 9.445 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.1513, allocations: 417.1 kB / 0.519 GB, free: 9.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1513, allocations: 7.875 kB / 0.519 GB, free: 9 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001682/0.153, allocations: 0.552 MB / 0.5196 GB, free: 8.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.1531, allocations: 8 kB / 0.5196 GB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1531, allocations: 0 / 0.5196 GB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004028/0.1535, allocations: 105.8 kB / 0.5197 GB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006705/0.1542, allocations: 107.8 kB / 0.5198 GB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004217/0.1584, allocations: 3.594 MB / 0.5233 GB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004529/0.1589, allocations: 20.05 kB / 0.5233 GB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.331e-05/0.1589, allocations: 23.94 kB / 0.5233 GB, free: 4.297 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.0003306/0.1593, allocations: 189.6 kB / 0.5235 GB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.1594, allocations: 35.77 kB / 0.5236 GB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.1596, allocations: 47.73 kB / 0.5236 GB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1596, allocations: 4 kB / 0.5236 GB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.1596, allocations: 7.984 kB / 0.5236 GB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1596, allocations: 0 / 0.5236 GB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.1622, allocations: 1.136 MB / 0.5247 GB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.1623, allocations: 0 / 0.5247 GB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005954/0.1629, allocations: 87.91 kB / 0.5248 GB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003609/0.1632, allocations: 97.56 kB / 0.5249 GB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.013e-05/0.1633, allocations: 11.98 kB / 0.5249 GB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2238/0.3871, allocations: 3.592 MB / 0.5284 GB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3872, allocations: 0 / 0.5284 GB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.3885, allocations: 0.77 MB / 0.5292 GB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.3886, allocations: 145.2 kB / 0.5293 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.869e-05/0.3887, allocations: 14.17 kB / 0.5293 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.389, allocations: 24.5 kB / 0.5293 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.517e-05/0.3891, allocations: 46.31 kB / 0.5294 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.3891, allocations: 12.66 kB / 0.5294 GB, free: 22.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001943/0.3893, allocations: 209.9 kB / 0.5296 GB, free: 22.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3893, allocations: 0 / 0.5296 GB, free: 22.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006563/0.39, allocations: 120.6 kB / 0.5297 GB, free: 22.54 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.001453/0.3914, allocations: 1.323 MB / 0.531 GB, free: 21.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.3926, allocations: 0.6616 MB / 0.5317 GB, free: 21.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3926, allocations: 3.969 kB / 0.5317 GB, free: 21.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006433/0.3933, allocations: 492 kB / 0.5321 GB, free: 21.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.3937, allocations: 44.44 kB / 0.5322 GB, free: 21.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005462/0.3992, allocations: 4.047 MB / 0.5361 GB, free: 19.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.3995, allocations: 0.8415 MB / 0.5369 GB, free: 18.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001881/0.3997, allocations: 46.84 kB / 0.537 GB, free: 18.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.4, allocations: 169.1 kB / 0.5371 GB, free: 18.97 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4, allocations: 1.281 kB / 0.5371 GB, free: 18.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03819/0.4382, allocations: 8.877 MB / 0.5458 GB, free: 17.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.748/10.19, allocations: 3.906 kB / 0.5458 GB, free: 17.61 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)