Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.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/Complex 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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",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.001167/0.001167, allocations: 108.4 kB / 16.45 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.234/1.234, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04882/0.04882, allocations: 8.101 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 67.89 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0826/0.08374, allocations: 51.51 MB / 465.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad): time 0.002812/0.08658, allocations: 1.695 MB / 467.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.08868, allocations: 1.559 MB / 468.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.08896, allocations: 7.938 kB / 468.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004872/0.08947, allocations: 131.3 kB / 468.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004474/0.08997, allocations: 127.2 kB / 469 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.09153, allocations: 0.9215 MB / 469.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003546/0.0919, allocations: 262.7 kB / 470.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.09208, allocations: 92.58 kB / 470.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.09221, allocations: 107.6 kB / 470.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.09242, allocations: 139.4 kB / 470.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.09247, allocations: 20 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003666/0.09284, allocations: 211.8 kB / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.882e-05/0.0929, allocations: 51.83 kB / 470.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.09301, allocations: 131.3 kB / 470.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005145/0.09354, allocations: 422.8 kB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.09355, allocations: 0 / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09356, allocations: 4 kB / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.09357, allocations: 0 / 471.3 MB, free: 12.8 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.002401/0.09597, allocations: 0.8495 MB / 472.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.09602, allocations: 19.89 kB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.151e-05/0.09608, allocations: 54.67 kB / 472.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.09614, allocations: 32.78 kB / 472.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.09642, allocations: 264.7 kB / 472.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.09644, allocations: 16.81 kB / 472.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.09648, allocations: 20.38 kB / 472.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004063/0.09689, allocations: 295.8 kB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.09691, allocations: 3.938 kB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.09694, allocations: 8 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.09695, allocations: 4 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003785/0.09734, allocations: 277.6 kB / 473.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.09867, allocations: 1.043 MB / 474.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008484/0.09953, allocations: 454.3 kB / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.09977, allocations: 177.3 kB / 474.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.026e-05/0.09983, allocations: 15.98 kB / 474.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.09986, allocations: 34.5 kB / 474.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.353e-06/0.09987, allocations: 8 kB / 474.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002769/0.1026, allocations: 0.9523 MB / 475.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.1027, allocations: 55.34 kB / 475.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.1029, allocations: 219.8 kB / 476.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.103, allocations: 29.7 kB / 476.1 MB, free: 7.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.061e-05/0.1031, allocations: 140.8 kB / 476.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.959e-05/0.1031, allocations: 115 kB / 476.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.1033, allocations: 73.62 kB / 476.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1034, allocations: 326.8 kB / 476.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.1037, allocations: 179.9 kB / 477 MB, free: 6.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.1039, allocations: 175.9 kB / 477.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006199/0.1046, allocations: 393.2 kB / 477.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1046, allocations: 0 / 477.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001385/0.106, allocations: 0.6696 MB / 478.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.106, allocations: 7.938 kB / 478.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.106, allocations: 0 / 478.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.107, allocations: 244.6 kB / 478.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.1072, allocations: 55.91 kB / 478.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003608/0.1108, allocations: 2.703 MB / 481.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.1111, allocations: 31.72 kB / 481.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.1111, allocations: 11.98 kB / 481.2 MB, free: 2.457 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001525/0.1113, allocations: 147.1 kB / 481.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.104e-05/0.1114, allocations: 23.86 kB / 481.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.1128, allocations: 0.6024 MB / 482 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1128, allocations: 8 kB / 482 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.1128, allocations: 0 / 482 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1128, allocations: 3.938 kB / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.1145, allocations: 1.05 MB / 483.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1145, allocations: 8 kB / 483.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.916e-05/0.1146, allocations: 31.98 kB / 483.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009156/0.1155, allocations: 244.5 kB / 483.3 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.1156, allocations: 7.938 kB / 483.3 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/0.1189, allocations: 2.665 MB / 486 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1189, allocations: 0 / 486 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.1202, allocations: 0.6575 MB / 486.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.731e-05/0.1202, allocations: 109 kB / 486.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.1203, allocations: 4 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.1205, allocations: 8.328 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.076e-05/0.1206, allocations: 23.97 kB / 486.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.1206, allocations: 19.98 kB / 486.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.1207, allocations: 163 kB / 487 MB, free: 12.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1207, allocations: 0 / 487 MB, free: 12.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004043/0.1212, allocations: 111.9 kB / 487.1 MB, free: 12.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001535/0.1227, allocations: 1.201 MB / 488.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.1239, allocations: 0.6193 MB / 488.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1239, allocations: 0 / 488.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007496/0.1247, allocations: 402.9 kB / 489.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.125, allocations: 35.86 kB / 489.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.1298, allocations: 3.374 MB / 492.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.13, allocations: 0.7524 MB / 493.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.1302, allocations: 33.91 kB / 493.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.1303, allocations: 67.41 kB / 493.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1303, allocations: 0 / 493.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/0.1588, allocations: 9.032 MB / 0.4908 GB, free: 12.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.39, allocations: 15.59 kB / 0.4908 GB, free: 12.75 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe 2>&1)