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.001613/0.001619, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 239.3 MB, free: 4.641 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.001545/0.001545, allocations: 191.9 kB / 289.6 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.035/0.035, allocations: 8.803 MB / 348.5 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001714, allocations: 78.3 kB / 411.2 MB, free: 42.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08967, allocations: 51.57 MB / 462.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005115/0.09484, allocations: 3.801 MB / 466.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.0967, allocations: 0.9309 MB / 467.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003776/0.0971, allocations: 11.94 kB / 467.5 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002621/0.09738, allocations: 87.16 kB / 467.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005459/0.09796, allocations: 150.6 kB / 467.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004113/0.09838, allocations: 171.8 kB / 467.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006639/0.09905, allocations: 0.6424 MB / 468.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004856/0.09955, allocations: 272.9 kB / 468.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000304/0.09986, allocations: 259.1 kB / 469.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003171/0.1002, allocations: 278.8 kB / 469.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.186e-05/0.1003, allocations: 68 kB / 469.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.993e-05/0.1004, allocations: 68 kB / 469.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.1005, allocations: 127.5 kB / 469.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002593/0.1008, allocations: 306.6 kB / 469.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006661/0.1014, allocations: 0.7284 MB / 470.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1014, allocations: 0 / 470.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1015, allocations: 7.938 kB / 470.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1015, allocations: 4 kB / 470.6 MB, free: 6.391 MB / 302.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.00131/0.1028, allocations: 0.8227 MB / 471.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1028, allocations: 8.031 kB / 471.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.714e-05/0.1029, allocations: 90.7 kB / 471.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.114e-05/0.103, allocations: 60.28 kB / 471.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.1035, allocations: 367.5 kB / 472 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.1035, allocations: 41.69 kB / 472 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.837e-05/0.1036, allocations: 48.38 kB / 472.1 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008571/0.1045, allocations: 0.5187 MB / 472.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1045, allocations: 3.938 kB / 472.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.585e-05/0.1045, allocations: 20 kB / 472.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.1046, allocations: 12 kB / 472.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007857/0.1053, allocations: 391.8 kB / 473 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.108, allocations: 1.91 MB / 474.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007135/0.1087, allocations: 311.4 kB / 475.2 MB, free: 1.582 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005459/0.1093, allocations: 241.2 kB / 475.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.1093, allocations: 288 / 475.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.1094, allocations: 42.83 kB / 475.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.312e-06/0.1094, allocations: 0 / 475.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004694/0.1141, allocations: 1.724 MB / 477.2 MB, free: 15.49 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.1141, allocations: 55.84 kB / 477.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003347/0.1145, allocations: 303.2 kB / 477.6 MB, free: 15.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.924e-05/0.1145, allocations: 37.7 kB / 477.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.1148, allocations: 260.2 kB / 477.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.1149, allocations: 169.6 kB / 478 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.1151, allocations: 86.16 kB / 478.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.1153, allocations: 346.8 kB / 478.4 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.1157, allocations: 157 kB / 478.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.1161, allocations: 238.6 kB / 478.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007703/0.1169, allocations: 413.1 kB / 479.2 MB, free: 13.37 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.1169, allocations: 4 kB / 479.2 MB, free: 13.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001057/0.118, allocations: 0.552 MB / 479.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.118, allocations: 8 kB / 479.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.118, allocations: 4 kB / 479.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003183/0.1184, allocations: 97.67 kB / 479.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004338/0.1188, allocations: 103.8 kB / 480 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003327/0.1221, allocations: 3.597 MB / 483.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/0.1225, allocations: 24.17 kB / 483.6 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.1225, allocations: 27.94 kB / 483.6 MB, free: 8.652 MB / 318.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.0002799/0.1228, allocations: 187.5 kB / 483.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.883e-05/0.1229, allocations: 35.62 kB / 483.9 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.995e-05/0.123, allocations: 47.77 kB / 483.9 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.123, allocations: 8 kB / 483.9 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.123, allocations: 0 / 483.9 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.123, allocations: 3.984 kB / 483.9 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.1248, allocations: 1.136 MB / 485.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1248, allocations: 0 / 485.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.1252, allocations: 83.89 kB / 485.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002497/0.1255, allocations: 101.6 kB / 485.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.065e-05/0.1255, allocations: 8 kB / 485.2 MB, free: 6.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002833/0.1284, allocations: 3.585 MB / 488.8 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.784e-05/0.1284, allocations: 3.938 kB / 488.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.1298, allocations: 0.7724 MB / 489.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.13, allocations: 148.6 kB / 489.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/0.13, allocations: 11.94 kB / 489.8 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.1303, allocations: 28.09 kB / 489.8 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.42e-05/0.1304, allocations: 35.94 kB / 489.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.1305, allocations: 15.98 kB / 489.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00022/0.1307, allocations: 210 kB / 490 MB, free: 1.844 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1307, allocations: 0 / 490 MB, free: 1.844 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006316/0.1314, allocations: 119.9 kB / 490.2 MB, free: 1.727 MB / 318.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.001669/0.133, allocations: 1.325 MB / 491.5 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.1344, allocations: 0.6861 MB / 492.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1344, allocations: 0 / 492.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007287/0.1352, allocations: 497.1 kB / 492.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.1357, allocations: 51.45 kB / 492.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005821/0.1415, allocations: 4.05 MB / 496.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.142, allocations: 0.8433 MB / 497.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002091/0.1422, allocations: 39.27 kB / 497.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.1425, allocations: 171.4 kB / 497.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1425, allocations: 0 / 497.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03277/0.1752, allocations: 8.646 MB / 0.4946 GB, free: 1.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.374/9.549, allocations: 7.781 kB / 0.4946 GB, free: 1.289 MB / 334.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)