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.004875/0.004875, allocations: 102.3 kB / 15.73 MB, free: 6.023 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.407/1.407, allocations: 222.9 MB / 239.4 MB, free: 4.5 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.001589/0.001589, allocations: 184.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03488/0.03488, allocations: 8.804 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 71.89 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1058, allocations: 51.57 MB / 0.5029 GB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarDelta): time 0.005341/0.1112, allocations: 4.017 MB / 0.5068 GB, free: 5.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.1134, allocations: 1.114 MB / 0.5079 GB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004495/0.1139, allocations: 23.88 kB / 0.5079 GB, free: 4.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003628/0.1143, allocations: 166.7 kB / 0.5081 GB, free: 4.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000907/0.1152, allocations: 282.5 kB / 0.5084 GB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003674/0.1156, allocations: 171.7 kB / 0.5085 GB, free: 4.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.1171, allocations: 1.592 MB / 0.5101 GB, free: 2.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.1188, allocations: 1.502 MB / 0.5116 GB, free: 1.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009805/0.1198, allocations: 0.7554 MB / 0.5123 GB, free: 276 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001154/0.1209, allocations: 0.8717 MB / 0.5131 GB, free: 15.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002246/0.1212, allocations: 192 kB / 0.5133 GB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00031/0.1215, allocations: 199.9 kB / 0.5135 GB, free: 15.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000438/0.1219, allocations: 0.5143 MB / 0.514 GB, free: 14.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009241/0.1229, allocations: 0.8634 MB / 0.5149 GB, free: 13.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002872/0.1257, allocations: 2.468 MB / 0.5173 GB, free: 11.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1258, allocations: 0 / 0.5173 GB, free: 11.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1258, allocations: 4 kB / 0.5173 GB, free: 11.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.618e-05/0.1258, allocations: 0 / 0.5173 GB, free: 11.15 MB / 366.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.003657/0.1295, allocations: 1.909 MB / 0.5191 GB, free: 9.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.1296, allocations: 16.03 kB / 0.5192 GB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002491/0.1298, allocations: 215 kB / 0.5194 GB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003593/0.1302, allocations: 179.9 kB / 0.5195 GB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00168/0.1319, allocations: 1.025 MB / 0.5205 GB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.683e-05/0.132, allocations: 107.1 kB / 0.5206 GB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.1322, allocations: 143.9 kB / 0.5208 GB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002951/0.1352, allocations: 1.924 MB / 0.5227 GB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.977e-05/0.1352, allocations: 4 kB / 0.5227 GB, free: 5.496 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.1354, allocations: 67.91 kB / 0.5227 GB, free: 5.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.508e-05/0.1354, allocations: 32 kB / 0.5228 GB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/0.1379, allocations: 1.595 MB / 0.5243 GB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2488/0.3868, allocations: 4.782 MB / 0.529 GB, free: 22.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.3883, allocations: 1.835 MB / 0.5308 GB, free: 21.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3894, allocations: 0.6634 MB / 0.5314 GB, free: 21.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.324e-05/0.3895, allocations: 10.38 kB / 0.5314 GB, free: 21.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.3905, allocations: 0.6042 MB / 0.532 GB, free: 21.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.805e-06/0.3906, allocations: 2.625 kB / 0.532 GB, free: 21.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.005129/0.3957, allocations: 2.787 MB / 0.5347 GB, free: 20.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.3958, allocations: 144.1 kB / 0.5349 GB, free: 20.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.3969, allocations: 0.8033 MB / 0.5357 GB, free: 20.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.3969, allocations: 45.36 kB / 0.5357 GB, free: 20.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005013/0.3974, allocations: 0.6265 MB / 0.5363 GB, free: 20.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.3976, allocations: 276.3 kB / 0.5366 GB, free: 20.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.3979, allocations: 152.4 kB / 0.5367 GB, free: 20.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.398, allocations: 392.9 kB / 0.5371 GB, free: 19.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006433/0.3987, allocations: 409.6 kB / 0.5375 GB, free: 19.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007451/0.3994, allocations: 0.5929 MB / 0.5381 GB, free: 19.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.4009, allocations: 0.9917 MB / 0.539 GB, free: 19.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4009, allocations: 2.078 kB / 0.539 GB, free: 19.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002059/0.4029, allocations: 1.248 MB / 0.5403 GB, free: 19.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.403, allocations: 6.406 kB / 0.5403 GB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.403, allocations: 8.625 kB / 0.5403 GB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004248/0.4034, allocations: 168.7 kB / 0.5404 GB, free: 19.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006542/0.4041, allocations: 160.6 kB / 0.5406 GB, free: 19.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/0.4072, allocations: 3 MB / 0.5435 GB, free: 17.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006678/0.4079, allocations: 52.17 kB / 0.5436 GB, free: 17.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/0.4079, allocations: 27.66 kB / 0.5436 GB, free: 17.72 MB / 366.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.0009908/0.4089, allocations: 0.5603 MB / 0.5441 GB, free: 17.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.4091, allocations: 85.91 kB / 0.5442 GB, free: 17.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.4093, allocations: 113.2 kB / 0.5443 GB, free: 17.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.4093, allocations: 7.906 kB / 0.5443 GB, free: 17.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.647e-05/0.4093, allocations: 6.188 kB / 0.5444 GB, free: 17.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.4094, allocations: 7.406 kB / 0.5444 GB, free: 17.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004732/0.4141, allocations: 2.645 MB / 0.5469 GB, free: 16.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.4141, allocations: 6.281 kB / 0.5469 GB, free: 16.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005373/0.4147, allocations: 115.7 kB / 0.5471 GB, free: 16.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000396/0.4151, allocations: 160.7 kB / 0.5472 GB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.457e-05/0.4152, allocations: 29.52 kB / 0.5472 GB, free: 16.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002839/0.418, allocations: 2.939 MB / 0.5501 GB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.418, allocations: 0.9688 kB / 0.5501 GB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002734/0.4208, allocations: 1.735 MB / 0.5518 GB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005059/0.4213, allocations: 257.9 kB / 0.5521 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.4214, allocations: 28 kB / 0.5521 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004241/0.4219, allocations: 47.69 kB / 0.5521 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.422, allocations: 70.56 kB / 0.5522 GB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.573e-05/0.4221, allocations: 30.33 kB / 0.5522 GB, free: 13.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000708/0.4228, allocations: 0.5652 MB / 0.5528 GB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4228, allocations: 0 / 0.5528 GB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001189/0.424, allocations: 263.3 kB / 0.553 GB, free: 13.27 MB / 366.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.002528/0.4265, allocations: 2.314 MB / 0.5553 GB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001873/0.4284, allocations: 1.15 MB / 0.5564 GB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.4284, allocations: 1.094 kB / 0.5564 GB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.4295, allocations: 0.6808 MB / 0.5571 GB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.4306, allocations: 216.9 kB / 0.5573 GB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.4434, allocations: 9.99 MB / 0.567 GB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008184/0.4443, allocations: 1.512 MB / 0.5685 GB, free: 2.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005524/0.4448, allocations: 226.5 kB / 0.5687 GB, free: 1.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004623/0.4453, allocations: 463.3 kB / 0.5692 GB, free: 1.453 MB / 366.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4453, allocations: 0 / 0.5692 GB, free: 1.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06912/0.5144, allocations: 23.86 MB / 0.5925 GB, free: 9.859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.38, allocations: 3.828 kB / 0.5925 GB, free: 9.859 MB / 398.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)