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.008367/0.008367, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.522/1.522, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.00154/0.00154, allocations: 180.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03704/0.03704, allocations: 8.803 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 75.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1139, allocations: 51.57 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005732/0.1197, allocations: 3.827 MB / 0.5066 GB, free: 6.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1215, allocations: 0.9153 MB / 0.5075 GB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.1218, allocations: 11.94 kB / 0.5075 GB, free: 5.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002459/0.1221, allocations: 91.14 kB / 0.5076 GB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004076/0.1225, allocations: 154.6 kB / 0.5078 GB, free: 4.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/0.1229, allocations: 163.8 kB / 0.5079 GB, free: 4.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007119/0.1237, allocations: 0.6424 MB / 0.5086 GB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004349/0.1241, allocations: 284.9 kB / 0.5088 GB, free: 3.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003117/0.1244, allocations: 263.1 kB / 0.5091 GB, free: 3.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003488/0.1248, allocations: 270.8 kB / 0.5093 GB, free: 3.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.277e-05/0.1249, allocations: 68 kB / 0.5094 GB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.125, allocations: 68 kB / 0.5095 GB, free: 3.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.1251, allocations: 143.5 kB / 0.5096 GB, free: 3.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002918/0.1254, allocations: 298.7 kB / 0.5099 GB, free: 2.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008061/0.1262, allocations: 0.7277 MB / 0.5106 GB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1262, allocations: 0 / 0.5106 GB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1263, allocations: 0 / 0.5106 GB, free: 2.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1263, 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.001517/0.1278, allocations: 0.8416 MB / 0.5114 GB, free: 1.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1278, allocations: 16.03 kB / 0.5114 GB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.128, allocations: 94.64 kB / 0.5115 GB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.1281, allocations: 64.55 kB / 0.5116 GB, free: 1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.1287, allocations: 371.8 kB / 0.5119 GB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.1287, allocations: 37.69 kB / 0.512 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.938e-05/0.1288, allocations: 48.38 kB / 0.512 GB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009907/0.1298, allocations: 0.5226 MB / 0.5125 GB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1299, allocations: 0 / 0.5125 GB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.1299, allocations: 20 kB / 0.5126 GB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.1299, allocations: 12 kB / 0.5126 GB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008573/0.1308, allocations: 391.8 kB / 0.5129 GB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002844/0.1336, allocations: 1.899 MB / 0.5148 GB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007139/0.1344, allocations: 313 kB / 0.5151 GB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005755/0.135, allocations: 225.3 kB / 0.5153 GB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.135, allocations: 8.266 kB / 0.5153 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.135, allocations: 34.84 kB / 0.5153 GB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.733e-06/0.1351, allocations: 0 / 0.5153 GB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004906/0.14, allocations: 1.731 MB / 0.517 GB, free: 11.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.14, allocations: 59.84 kB / 0.5171 GB, free: 11.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.1404, allocations: 307.1 kB / 0.5174 GB, free: 10.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.1405, allocations: 33.7 kB / 0.5174 GB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.1407, allocations: 276.8 kB / 0.5177 GB, free: 10.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.1408, allocations: 166.5 kB / 0.5178 GB, free: 10.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.141, allocations: 90.25 kB / 0.5179 GB, free: 10.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1411, allocations: 346.8 kB / 0.5183 GB, free: 9.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.1415, allocations: 149.1 kB / 0.5184 GB, free: 9.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004359/0.142, allocations: 242.5 kB / 0.5186 GB, free: 9.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008221/0.1428, allocations: 405.2 kB / 0.519 GB, free: 9.012 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1428, allocations: 4 kB / 0.519 GB, free: 9.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001171/0.144, allocations: 0.5635 MB / 0.5196 GB, free: 8.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.144, allocations: 8 kB / 0.5196 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.144, allocations: 0 / 0.5196 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003318/0.1444, allocations: 105.9 kB / 0.5197 GB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004707/0.1448, allocations: 107.8 kB / 0.5198 GB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00341/0.1483, allocations: 3.594 MB / 0.5233 GB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.1486, allocations: 20.06 kB / 0.5233 GB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.1487, allocations: 23.92 kB / 0.5233 GB, free: 4.293 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.000264/0.1489, allocations: 185.6 kB / 0.5235 GB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.149, allocations: 39.77 kB / 0.5236 GB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.1491, allocations: 51.73 kB / 0.5236 GB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1491, allocations: 4 kB / 0.5236 GB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.1491, allocations: 4 kB / 0.5236 GB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1492, allocations: 7.984 kB / 0.5236 GB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/0.151, allocations: 1.125 MB / 0.5247 GB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1511, allocations: 8.016 kB / 0.5247 GB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.1515, allocations: 75.89 kB / 0.5248 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002701/0.1518, allocations: 101.5 kB / 0.5249 GB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.1518, allocations: 12.12 kB / 0.5249 GB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1998/0.3516, allocations: 3.591 MB / 0.5284 GB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3517, allocations: 3.562 kB / 0.5284 GB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.3539, allocations: 0.7737 MB / 0.5292 GB, free: 22.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.3541, allocations: 147.4 kB / 0.5293 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.041e-05/0.3542, allocations: 10.5 kB / 0.5293 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004998/0.3547, allocations: 26.22 kB / 0.5293 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3549, allocations: 42.3 kB / 0.5294 GB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.3549, allocations: 12.72 kB / 0.5294 GB, free: 22.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003318/0.3553, allocations: 206 kB / 0.5296 GB, free: 22.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3553, allocations: 0 / 0.5296 GB, free: 22.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001152/0.3565, allocations: 119.9 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.002683/0.3592, allocations: 1.326 MB / 0.531 GB, free: 21.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.3612, allocations: 0.6649 MB / 0.5317 GB, free: 21.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3612, allocations: 3.406 kB / 0.5317 GB, free: 21.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.3624, allocations: 485.6 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.0007545/0.3632, allocations: 56.42 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.009248/0.3724, allocations: 4.034 MB / 0.5361 GB, free: 19.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004378/0.3729, allocations: 0.8415 MB / 0.5369 GB, free: 18.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003494/0.3733, allocations: 44.34 kB / 0.537 GB, free: 18.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003403/0.3736, allocations: 167.7 kB / 0.5371 GB, free: 18.9 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3737, allocations: 0 / 0.5371 GB, free: 18.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05855/0.4322, allocations: 8.884 MB / 0.5458 GB, free: 17.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.79, allocations: 4.219 kB / 0.5458 GB, free: 17.51 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)