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.001207/0.001207, allocations: 106.8 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.001294/0.001294, allocations: 190 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.325/1.325, 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.05146/0.05146, allocations: 8.101 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 63.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1046, allocations: 51.51 MB / 465.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.003185/0.1078, allocations: 1.782 MB / 467.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.1102, allocations: 1.477 MB / 468.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002055/0.1104, allocations: 4 kB / 468.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000456/0.1109, allocations: 127.3 kB / 468.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003595/0.1113, allocations: 107.3 kB / 469 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001679/0.113, allocations: 0.9179 MB / 469.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.1133, allocations: 238.9 kB / 470.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.1136, allocations: 123.7 kB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.1138, allocations: 107.6 kB / 470.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.114, allocations: 135.5 kB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.645e-05/0.1141, allocations: 24 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004664/0.1145, allocations: 215.8 kB / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.433e-05/0.1146, allocations: 51.83 kB / 470.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.1147, allocations: 131.3 kB / 470.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006614/0.1154, allocations: 402.6 kB / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1154, allocations: 0 / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1154, allocations: 0 / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1155, allocations: 0 / 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.002288/0.1177, allocations: 0.7684 MB / 472.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.1178, allocations: 15.89 kB / 472.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.357e-05/0.1179, allocations: 62.72 kB / 472.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.468e-05/0.118, allocations: 28.56 kB / 472.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.1182, allocations: 232.1 kB / 472.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.1183, allocations: 20.94 kB / 472.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.936e-05/0.1183, allocations: 24.38 kB / 472.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.1188, allocations: 305.1 kB / 472.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.1189, allocations: 0 / 472.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.1189, allocations: 8 kB / 472.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1189, allocations: 8 kB / 472.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.1193, allocations: 290.1 kB / 473 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1207, allocations: 0.8812 MB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.1212, allocations: 290.5 kB / 474.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.1214, allocations: 134.1 kB / 474.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.9e-05/0.1215, allocations: 15.92 kB / 474.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.1215, allocations: 34.56 kB / 474.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.502e-06/0.1215, allocations: 0 / 474.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.00126/0.1228, allocations: 0.5187 MB / 474.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.1229, allocations: 59.34 kB / 475 MB, free: 8.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.123, allocations: 164.8 kB / 475.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.1231, allocations: 29.7 kB / 475.1 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.1232, allocations: 156.3 kB / 475.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.779e-05/0.1233, allocations: 86.73 kB / 475.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.1234, allocations: 61.69 kB / 475.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1236, allocations: 330.8 kB / 475.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.1238, allocations: 128 kB / 475.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.124, allocations: 132 kB / 476 MB, free: 7.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004296/0.1244, allocations: 293.1 kB / 476.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1244, allocations: 4 kB / 476.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007059/0.1251, allocations: 402.1 kB / 476.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.1252, allocations: 8 kB / 476.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.1252, allocations: 3.984 kB / 476.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003233/0.1255, allocations: 48.77 kB / 476.8 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/0.1258, allocations: 59.91 kB / 476.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.1274, allocations: 1.543 MB / 478.4 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.1276, allocations: 23.72 kB / 478.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.1276, allocations: 15.98 kB / 478.4 MB, free: 5.332 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.0001494/0.1277, allocations: 137.8 kB / 478.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.177e-05/0.1278, allocations: 19.75 kB / 478.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006609/0.1285, allocations: 347.9 kB / 478.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.1285, allocations: 4 kB / 478.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1285, allocations: 0 / 478.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1285, allocations: 0 / 478.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003938/0.1289, allocations: 369.1 kB / 479.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1289, allocations: 0 / 479.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.1291, allocations: 39.92 kB / 479.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.1293, allocations: 56.81 kB / 479.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.1294, allocations: 4 kB / 479.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.1308, allocations: 1.527 MB / 480.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.1308, allocations: 3.938 kB / 480.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000592/0.1314, allocations: 401.8 kB / 481.3 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.506e-05/0.1315, allocations: 100.8 kB / 481.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.1315, allocations: 7.938 kB / 481.4 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.1317, allocations: 4 kB / 481.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.1317, allocations: 23.91 kB / 481.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.1317, allocations: 4 kB / 481.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001051/0.1318, allocations: 131.2 kB / 481.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1319, allocations: 0 / 481.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.1323, allocations: 79.84 kB / 481.6 MB, free: 1.859 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.000943/0.1332, allocations: 0.9669 MB / 482.6 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008094/0.134, allocations: 422.3 kB / 483 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1341, allocations: 0 / 483 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.1345, allocations: 258.5 kB / 483.3 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.1348, allocations: 12 kB / 483.3 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.138, allocations: 2.523 MB / 485.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.1383, allocations: 0.7435 MB / 486.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.1385, allocations: 41.45 kB / 486.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.1386, allocations: 67.42 kB / 486.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1386, allocations: 0 / 486.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.163, allocations: 4.974 MB / 491.6 MB, free: 7.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.952/9.115, allocations: 15.7 kB / 491.6 MB, free: 7.793 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)