Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.StarDelta.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.Electrical.StarDelta,fileNamePrefix="HanserModelica_HanserModelica_Electrical_StarDelta",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.StarDelta,fileNamePrefix="HanserModelica_HanserModelica_Electrical_StarDelta",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.001178/0.001178, 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.441/1.441, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.00162/0.00162, allocations: 188.5 kB / 289.5 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03494/0.03494, allocations: 8.802 MB / 348.5 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001732, allocations: 80.98 kB / 411.2 MB, free: 42.17 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08619/0.08794, allocations: 51.57 MB / 462.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarDelta): time 0.005596/0.09359, allocations: 4.015 MB / 466.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.09572, allocations: 1.11 MB / 467.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003051/0.09605, allocations: 23.88 kB / 467.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003334/0.09639, allocations: 166.7 kB / 468.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007122/0.09714, allocations: 278.4 kB / 468.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.09748, allocations: 163.8 kB / 468.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.09882, allocations: 1.588 MB / 470.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.1003, allocations: 1.507 MB / 471.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007669/0.1011, allocations: 0.7438 MB / 472.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009117/0.102, allocations: 0.8833 MB / 473.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000225/0.1022, allocations: 188 kB / 473.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003138/0.1025, allocations: 196 kB / 473.6 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004187/0.103, allocations: 0.5221 MB / 474.1 MB, free: 2.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008017/0.1038, allocations: 0.8594 MB / 475 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001878/0.1057, allocations: 2.426 MB / 477.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1057, allocations: 4 kB / 477.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1057, allocations: 0 / 477.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.521e-05/0.1057, allocations: 0 / 477.4 MB, free: 15.64 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 351 * Number of variables: 351 Notification: Performance of Generate backend data structure: time 0.002956/0.1087, allocations: 1.886 MB / 479.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1087, allocations: 12.03 kB / 479.3 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002321/0.109, allocations: 207 kB / 479.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003247/0.1093, allocations: 175 kB / 479.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.1107, allocations: 0.9857 MB / 480.7 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.676e-05/0.1108, allocations: 111.1 kB / 480.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001827/0.1109, allocations: 143.9 kB / 480.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002721/0.1137, allocations: 1.924 MB / 482.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.1137, allocations: 4 kB / 482.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.1138, allocations: 56 kB / 482.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.1139, allocations: 32 kB / 482.9 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/0.1163, allocations: 1.595 MB / 484.5 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007159/0.1235, allocations: 4.851 MB / 489.4 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.1252, allocations: 1.833 MB / 491.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.1264, allocations: 0.6629 MB / 491.9 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.898e-05/0.1265, allocations: 8.656 kB / 491.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009528/0.1274, allocations: 0.6023 MB / 492.5 MB, free: 56 kB / 318.1 MB Notification: Performance of pre-optimization done (n=74): time 2.846e-06/0.1274, allocations: 0 / 492.5 MB, free: 56 kB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.005293/0.1327, allocations: 2.783 MB / 495.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.1329, allocations: 141.2 kB / 495.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.1341, allocations: 0.801 MB / 496.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.68e-05/0.1342, allocations: 45.7 kB / 496.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007964/0.135, allocations: 0.612 MB / 496.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002646/0.1353, allocations: 264.3 kB / 497.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.1356, allocations: 154.6 kB / 497.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000244/0.1358, allocations: 394.8 kB / 497.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006427/0.1365, allocations: 409.6 kB / 498.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007241/0.1372, allocations: 0.5957 MB / 498.6 MB, free: 9.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.1385, allocations: 0.9894 MB / 499.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.1385, allocations: 4 kB / 499.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002006/0.1405, allocations: 1.242 MB / 0.4891 GB, free: 7.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1406, allocations: 4 kB / 0.4891 GB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1406, allocations: 8 kB / 0.4892 GB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004096/0.141, allocations: 171.1 kB / 0.4893 GB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006916/0.1417, allocations: 163.7 kB / 0.4895 GB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003116/0.1448, allocations: 2.986 MB / 0.4924 GB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006014/0.1455, allocations: 52.02 kB / 0.4924 GB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-05/0.1455, allocations: 28 kB / 0.4925 GB, free: 3.84 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquare[3].mean.y_last,$PRE.rootMeanSquare[3].mean.y_last,rootMeanSquare[2].mean.y_last,$PRE.rootMeanSquare[2].mean.y_last,rootMeanSquare[1].mean.y_last,$PRE.rootMeanSquare[1].mean.y_last,switch.control[3],switch.control[2],switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008221/0.1464, allocations: 0.5533 MB / 0.493 GB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.1465, allocations: 91.11 kB / 0.4931 GB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002017/0.1467, allocations: 108.3 kB / 0.4932 GB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1467, allocations: 12 kB / 0.4932 GB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.1467, allocations: 0 / 0.4932 GB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.1467, allocations: 7.984 kB / 0.4932 GB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/0.1506, allocations: 2.658 MB / 0.4958 GB, free: 332 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.1506, allocations: 0 / 0.4958 GB, free: 332 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004957/0.1511, allocations: 111.9 kB / 0.4959 GB, free: 220 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003261/0.1515, allocations: 156.9 kB / 0.4961 GB, free: 60 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.622e-05/0.1515, allocations: 31.97 kB / 0.4961 GB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/0.1545, allocations: 2.942 MB / 0.499 GB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1545, allocations: 0 / 0.499 GB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002572/0.1571, allocations: 1.735 MB / 0.5007 GB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004292/0.1575, allocations: 256 kB / 0.5009 GB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.1577, allocations: 31.98 kB / 0.5009 GB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.1581, allocations: 43.95 kB / 0.501 GB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.1583, allocations: 80.42 kB / 0.5011 GB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.1583, allocations: 23.94 kB / 0.5011 GB, free: 10.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007058/0.1591, allocations: 0.5653 MB / 0.5016 GB, free: 10.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1591, allocations: 0 / 0.5016 GB, free: 10.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008973/0.16, allocations: 272 kB / 0.5019 GB, free: 9.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inductor.inductor[1].i,inductor.inductor[3].i,inductorLoad.inductor[3].i,rootMeanSquare[1].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[3].mean.x) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,switch.control[1],switch.control[2],switch.control[3],rootMeanSquare[1].mean.y_last,rootMeanSquare[2].mean.y_last,rootMeanSquare[3].mean.y_last) * Number of discrete states: 3 (rootMeanSquare[1].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003098/0.1631, allocations: 2.3 MB / 0.5041 GB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002506/0.1656, allocations: 1.418 MB / 0.5055 GB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.1656, allocations: 0 / 0.5055 GB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.1668, allocations: 0.693 MB / 0.5062 GB, free: 5.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.168, allocations: 211.4 kB / 0.5064 GB, free: 5.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.1814, allocations: 10.32 MB / 0.5165 GB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009949/0.1824, allocations: 1.512 MB / 0.518 GB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006091/0.183, allocations: 222.5 kB / 0.5182 GB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000536/0.1836, allocations: 471.3 kB / 0.5186 GB, free: 8.355 MB / 366.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1836, allocations: 0 / 0.5186 GB, free: 8.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2273/0.4109, allocations: 23.36 MB / 0.5414 GB, free: 65.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.702/10.11, allocations: 7.766 kB / 0.5414 GB, free: 65.32 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.StarDelta.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.StarDelta.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.StarDelta.pipe >> ../files/HanserModelica_HanserModelica.Electrical.StarDelta.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.StarDelta_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_Electrical_StarDelta.fmu > HanserModelica_HanserModelica.Electrical.StarDelta.pipe 2>&1)