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.005332/0.005332, allocations: 97.12 kB / 15.92 MB, free: 6.277 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.001322/0.001322, allocations: 196.5 kB / 16.84 MB, free: 6.191 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.268/1.268, allocations: 222.9 MB / 240.5 MB, free: 4.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1454/0.1454, allocations: 8.086 MB / 298.7 MB, free: 2.035 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 71.89 kB / 361.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09843, allocations: 51.51 MB / 412.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.002576/0.101, allocations: 1.81 MB / 414.5 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.1026, allocations: 1.465 MB / 415.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.887e-05/0.1027, allocations: 4 kB / 415.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.103, allocations: 111.6 kB / 416 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.1032, allocations: 91.5 kB / 416.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.1047, allocations: 0.8979 MB / 417 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002672/0.105, allocations: 226.9 kB / 417.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1051, allocations: 99.31 kB / 417.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.525e-05/0.1052, allocations: 99.58 kB / 417.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.1054, allocations: 143.4 kB / 417.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.1054, allocations: 16 kB / 417.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.1058, allocations: 207.8 kB / 417.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.609e-05/0.1058, allocations: 43.83 kB / 417.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1059, allocations: 115.5 kB / 418 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004053/0.1063, allocations: 403.1 kB / 418.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1063, allocations: 0 / 418.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1063, allocations: 0 / 418.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.1063, allocations: 0 / 418.4 MB, free: 4.324 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.001877/0.1082, allocations: 0.7625 MB / 419.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.1083, allocations: 12.03 kB / 419.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.349e-05/0.1083, allocations: 62.72 kB / 419.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.21e-05/0.1084, allocations: 24.66 kB / 419.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.1086, allocations: 247.9 kB / 419.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.1086, allocations: 16.94 kB / 419.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.1087, allocations: 28.38 kB / 419.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004405/0.1091, allocations: 301.2 kB / 419.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1091, allocations: 0 / 419.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.1092, allocations: 15.94 kB / 419.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.1092, allocations: 8 kB / 419.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003994/0.1096, allocations: 290.1 kB / 420.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.1109, allocations: 0.8969 MB / 421 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000456/0.1113, allocations: 284.9 kB / 421.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.1115, allocations: 128.8 kB / 421.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.239e-05/0.1116, allocations: 7.984 kB / 421.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.1116, allocations: 39 kB / 421.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.375e-06/0.1116, allocations: 0 / 421.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001103/0.1127, allocations: 0.5263 MB / 422 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.1127, allocations: 59.41 kB / 422 MB, free: 448 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.1129, allocations: 167.2 kB / 422.2 MB, free: 272 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.1129, allocations: 29.7 kB / 422.2 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.729e-05/0.113, allocations: 144.4 kB / 422.4 MB, free: 88 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.824e-05/0.1131, allocations: 86.73 kB / 422.5 MB, free: 0 / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1132, allocations: 65.59 kB / 422.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1133, allocations: 326.8 kB / 422.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.1135, allocations: 128 kB / 423 MB, free: 15.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1136, allocations: 135.8 kB / 423.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.1141, allocations: 297.2 kB / 423.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1141, allocations: 0 / 423.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006508/0.1147, allocations: 406 kB / 423.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1147, allocations: 10.19 kB / 423.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.1148, allocations: 0 / 423.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002578/0.115, allocations: 56.81 kB / 423.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.1153, allocations: 55.91 kB / 423.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.1165, allocations: 1.44 MB / 425.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.1167, allocations: 19.78 kB / 425.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.1167, allocations: 8 kB / 425.4 MB, free: 12.92 MB / 366.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.0001195/0.1168, allocations: 148.8 kB / 425.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.313e-05/0.1169, allocations: 15.91 kB / 425.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006217/0.1175, allocations: 359.5 kB / 425.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1175, allocations: 4 kB / 425.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1175, allocations: 0 / 425.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1176, allocations: 3.984 kB / 425.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003501/0.1179, allocations: 357.3 kB / 426.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1179, allocations: 0 / 426.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.1181, allocations: 43.98 kB / 426.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002042/0.1183, allocations: 60.62 kB / 426.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1183, allocations: 8 kB / 426.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.1195, allocations: 1.425 MB / 427.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1195, allocations: 0 / 427.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005549/0.1201, allocations: 413.8 kB / 428.2 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.877e-05/0.1201, allocations: 96.86 kB / 428.3 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.1202, allocations: 7.938 kB / 428.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.1203, allocations: 4 kB / 428.3 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.1204, allocations: 19.97 kB / 428.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1204, allocations: 8 kB / 428.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.61e-05/0.1205, allocations: 126.3 kB / 428.4 MB, free: 9.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1205, allocations: 0 / 428.4 MB, free: 9.621 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000334/0.1208, allocations: 87.84 kB / 428.5 MB, free: 9.535 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 (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.0008622/0.1217, allocations: 0.9552 MB / 429.5 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007152/0.1224, allocations: 422.3 kB / 429.9 MB, free: 8.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1224, allocations: 0 / 429.9 MB, free: 8.121 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004016/0.1229, allocations: 258.5 kB / 430.1 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.1231, allocations: 15.94 kB / 430.2 MB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.1261, allocations: 2.621 MB / 432.8 MB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.1265, allocations: 0.7359 MB / 433.5 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.1266, allocations: 29.52 kB / 433.5 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.1268, allocations: 71.41 kB / 433.6 MB, free: 4.273 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1268, allocations: 0 / 433.6 MB, free: 4.273 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2548/0.3816, allocations: 4.581 MB / 438.2 MB, free: 56.49 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/0.3818, allocations: 215.2 kB / 438.4 MB, free: 56.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.035, allocations: 1.125 kB / 438.4 MB, free: 56.24 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)