Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.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.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",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.001257/0.001257, allocations: 105.4 kB / 16.45 MB, free: 6.504 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.001341/0.001341, allocations: 189.5 kB / 17.39 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.335/1.335, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05056/0.05056, allocations: 8.098 MB / 299.3 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 63.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08657/0.08831, allocations: 51.51 MB / 465.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.003477/0.09182, allocations: 1.77 MB / 467.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.09419, allocations: 1.477 MB / 468.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.09439, allocations: 4 kB / 468.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000457/0.09485, allocations: 127.3 kB / 468.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.09523, allocations: 95.3 kB / 469 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001863/0.09711, allocations: 0.9412 MB / 469.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004186/0.09754, allocations: 234.9 kB / 470.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/0.09778, allocations: 127.7 kB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.09794, allocations: 99.62 kB / 470.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.0982, allocations: 139.5 kB / 470.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.615e-05/0.09825, allocations: 24 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000445/0.0987, allocations: 207.8 kB / 470.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.869e-05/0.09877, allocations: 51.83 kB / 470.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.09894, allocations: 131.3 kB / 470.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006901/0.09963, allocations: 406.8 kB / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.09965, allocations: 0 / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09966, allocations: 0 / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.09967, allocations: 4 kB / 471.3 MB, free: 12.84 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002306/0.102, allocations: 0.7717 MB / 472.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.102, allocations: 15.89 kB / 472.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.211e-05/0.1021, allocations: 66.72 kB / 472.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/0.1022, allocations: 28.75 kB / 472.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.1026, allocations: 244 kB / 472.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.1026, allocations: 16.94 kB / 472.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.1026, allocations: 24.38 kB / 472.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005919/0.1032, allocations: 305.1 kB / 472.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1032, allocations: 0 / 472.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1033, allocations: 12 kB / 472.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1033, allocations: 4 kB / 472.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005105/0.1038, allocations: 294.1 kB / 473.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.1053, allocations: 0.8777 MB / 473.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.1059, allocations: 298 kB / 474.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.1061, allocations: 134.1 kB / 474.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.432e-05/0.1062, allocations: 11.92 kB / 474.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.246e-05/0.1062, allocations: 30.56 kB / 474.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.1062, allocations: 4 kB / 474.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001257/0.1075, allocations: 0.5226 MB / 474.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.1076, allocations: 55.41 kB / 475 MB, free: 8.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.1077, allocations: 168.3 kB / 475.1 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.1078, allocations: 33.7 kB / 475.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.903e-05/0.1079, allocations: 140.7 kB / 475.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.376e-05/0.108, allocations: 95.17 kB / 475.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1081, allocations: 65.69 kB / 475.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1082, allocations: 326.8 kB / 475.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.1084, allocations: 128 kB / 475.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.1086, allocations: 132 kB / 476 MB, free: 7.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.1091, allocations: 297.1 kB / 476.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1091, allocations: 3.938 kB / 476.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000727/0.1098, allocations: 402.2 kB / 476.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.1099, allocations: 6.344 kB / 476.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1099, allocations: 3.984 kB / 476.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/0.1102, allocations: 52.83 kB / 476.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.1104, allocations: 55.91 kB / 476.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.112, allocations: 1.551 MB / 478.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.1122, allocations: 31.8 kB / 478.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.1122, allocations: 4 kB / 478.4 MB, free: 5.312 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 (35): * Single equations (assignments): 34 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001446/0.1124, allocations: 141.8 kB / 478.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.596e-05/0.1125, allocations: 19.84 kB / 478.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007172/0.1132, allocations: 347.7 kB / 478.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1132, allocations: 4.062 kB / 478.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1132, allocations: 7.984 kB / 478.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1132, allocations: 0 / 478.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004308/0.1137, allocations: 361.2 kB / 479.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1137, allocations: 0 / 479.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.1138, allocations: 43.97 kB / 479.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/0.1141, allocations: 48.83 kB / 479.4 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.1141, allocations: 11.94 kB / 479.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.1156, allocations: 1.527 MB / 480.9 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1156, allocations: 3.938 kB / 480.9 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006196/0.1162, allocations: 401.8 kB / 481.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.459e-05/0.1163, allocations: 105 kB / 481.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.1163, allocations: 7.938 kB / 481.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.1165, allocations: 4 kB / 481.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.1165, allocations: 23.84 kB / 481.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.1165, allocations: 12 kB / 481.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001128/0.1167, allocations: 124.9 kB / 481.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1167, allocations: 0 / 481.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003691/0.117, allocations: 79.89 kB / 481.7 MB, free: 1.828 MB / 350.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 (25): * Single equations (assignments): 24 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001097/0.1181, allocations: 0.9708 MB / 482.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008206/0.119, allocations: 430.3 kB / 483.1 MB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.119, allocations: 0 / 483.1 MB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004572/0.1195, allocations: 254.6 kB / 483.3 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.1197, allocations: 16 kB / 483.3 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.1233, allocations: 2.519 MB / 485.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.1237, allocations: 0.7434 MB / 486.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.1239, allocations: 37.5 kB / 486.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.124, allocations: 75.41 kB / 486.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.124, allocations: 0 / 486.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02902/0.153, allocations: 4.886 MB / 491.6 MB, free: 7.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.917/10.07, allocations: 8.016 kB / 491.6 MB, free: 7.836 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors_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_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)