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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.001018/0.001018, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.316/1.316, allocations: 223.2 MB / 238.9 MB, free: 5.48 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.001127/0.001127, allocations: 185 kB / 290.2 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03209/0.03209, allocations: 8.794 MB / 350.1 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003639, allocations: 10.69 kB / 413.2 MB, free: 43.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1011, allocations: 52.56 MB / 465.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.003776/0.1049, allocations: 3.067 MB / 468.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1063, allocations: 0.9045 MB / 469.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.1065, allocations: 15.94 kB / 469.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.213e-05/0.1066, allocations: 55.53 kB / 469.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003519/0.107, allocations: 179.5 kB / 469.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002502/0.1072, allocations: 107.9 kB / 470 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004378/0.1077, allocations: 427.5 kB / 470.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003083/0.108, allocations: 208.2 kB / 470.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.1082, allocations: 199.3 kB / 470.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.1085, allocations: 219 kB / 471.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.813e-05/0.1085, allocations: 36 kB / 471.1 MB, free: 8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.973e-05/0.1086, allocations: 28 kB / 471.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.39e-05/0.1087, allocations: 91.61 kB / 471.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.06e-05/0.1088, allocations: 125.5 kB / 471.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.1092, allocations: 0.5453 MB / 471.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1093, allocations: 0 / 471.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1093, allocations: 0 / 471.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.1093, allocations: 0 / 471.9 MB, free: 7.207 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.001178/0.1105, allocations: 0.7602 MB / 472.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.1105, allocations: 8.031 kB / 472.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.1106, allocations: 90.52 kB / 472.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.748e-05/0.1107, allocations: 63.3 kB / 472.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.1112, allocations: 358.3 kB / 473.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.818e-05/0.1112, allocations: 41.31 kB / 473.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.71e-05/0.1113, allocations: 48 kB / 473.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008414/0.1121, allocations: 0.5147 MB / 473.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1122, allocations: 0 / 473.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.69e-05/0.1122, allocations: 24 kB / 473.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.1122, allocations: 15.95 kB / 473.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007573/0.113, allocations: 399.7 kB / 474.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002623/0.1156, allocations: 1.918 MB / 476.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006474/0.1163, allocations: 315.3 kB / 476.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.1163, allocations: 8.266 kB / 476.4 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.1164, allocations: 38.8 kB / 476.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.342e-06/0.1164, allocations: 0 / 476.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004448/0.1208, allocations: 1.797 MB / 478.3 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.1209, allocations: 59.83 kB / 478.3 MB, free: 460 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003253/0.1212, allocations: 299.2 kB / 478.6 MB, free: 156 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.907e-05/0.1213, allocations: 37.64 kB / 478.7 MB, free: 112 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.1215, allocations: 268.3 kB / 478.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.1216, allocations: 157.6 kB / 479.1 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.1217, allocations: 12 kB / 479.1 MB, free: 15.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1218, allocations: 346.8 kB / 479.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.1222, allocations: 153 kB / 479.6 MB, free: 15.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003935/0.1226, allocations: 250.5 kB / 479.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.123, allocations: 184.8 kB / 480 MB, free: 14.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.123, allocations: 0 / 480 MB, free: 14.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001055/0.1241, allocations: 0.5635 MB / 480.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1241, allocations: 8.281 kB / 480.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1241, allocations: 8 kB / 480.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.1244, allocations: 93.62 kB / 480.7 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000435/0.1249, allocations: 111.8 kB / 480.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002855/0.1277, allocations: 3.256 MB / 484 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.128, allocations: 27.98 kB / 484.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.128, allocations: 19.95 kB / 484.1 MB, free: 10.34 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.1283, allocations: 189.7 kB / 484.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/0.1284, allocations: 31.62 kB / 484.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.576e-05/0.1285, allocations: 47.73 kB / 484.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1285, allocations: 4 kB / 484.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.1285, allocations: 8 kB / 484.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.1285, allocations: 3.984 kB / 484.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000641/0.1292, allocations: 0.5406 MB / 484.9 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1292, allocations: 3.938 kB / 484.9 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.1296, allocations: 83.89 kB / 485 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002392/0.1298, allocations: 93.66 kB / 485.1 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.1299, allocations: 12 kB / 485.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002749/0.1326, allocations: 3.259 MB / 488.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1326, allocations: 0 / 488.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.134, allocations: 0.785 MB / 489.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.1342, allocations: 148.6 kB / 489.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.1343, allocations: 16.5 kB / 489.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.1345, allocations: 27.97 kB / 489.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.017e-05/0.1346, allocations: 32.39 kB / 489.3 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.712e-05/0.1347, allocations: 16 kB / 489.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.1349, allocations: 209.9 kB / 489.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1349, allocations: 4 kB / 489.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006216/0.1355, allocations: 120 kB / 489.7 MB, free: 4.352 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001721/0.1372, allocations: 1.338 MB / 491 MB, free: 2.977 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.1385, allocations: 0.6819 MB / 491.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1385, allocations: 0 / 491.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007477/0.1392, allocations: 496.2 kB / 492.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.1396, allocations: 36.64 kB / 492.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004881/0.1445, allocations: 4.041 MB / 496.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004407/0.1449, allocations: 0.8512 MB / 497.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.1451, allocations: 43.25 kB / 497.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002109/0.1453, allocations: 163.4 kB / 497.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1454, allocations: 4 kB / 497.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.1691, allocations: 7.968 MB / 0.4935 GB, free: 4.715 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.1693, allocations: 190.6 kB / 0.4936 GB, free: 4.473 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/1.908, allocations: 0 / 0.4936 GB, free: 4.473 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Magnetic_TestTransformer_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1) Environment - environmentSimulation: