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.00146/0.001465, allocations: 107.5 kB / 16.45 MB, free: 6.426 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.001609/0.001609, allocations: 190 kB / 17.39 MB, free: 5.668 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04628/0.04628, allocations: 8.105 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 59.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08641/0.08753, allocations: 51.52 MB / 465.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.002712/0.09028, allocations: 1.774 MB / 467.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.09203, allocations: 1.465 MB / 468.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.156e-05/0.09212, allocations: 4 kB / 468.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.09249, allocations: 135.3 kB / 468.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.09272, allocations: 95.38 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.0942, allocations: 0.9372 MB / 469.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002918/0.0945, allocations: 238.8 kB / 470.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.09472, allocations: 123.7 kB / 470.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.524e-05/0.09481, allocations: 99.64 kB / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.09502, allocations: 147.4 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.09506, allocations: 20 kB / 470.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003302/0.0954, allocations: 207.8 kB / 470.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.47e-05/0.09545, allocations: 55.77 kB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.09557, allocations: 119.4 kB / 470.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000474/0.09605, allocations: 414.5 kB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.09606, allocations: 0 / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.09607, allocations: 0 / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.09609, allocations: 0 / 471.3 MB, free: 12.81 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.002084/0.09818, allocations: 0.7685 MB / 472.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.09823, allocations: 11.89 kB / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.845e-05/0.09829, allocations: 58.73 kB / 472.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.09836, allocations: 28.56 kB / 472.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.0986, allocations: 243.4 kB / 472.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.09863, allocations: 20.94 kB / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.09868, allocations: 28.31 kB / 472.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.09914, allocations: 301.2 kB / 472.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.09916, allocations: 4 kB / 472.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.09919, allocations: 8 kB / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.09921, allocations: 8 kB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003953/0.09961, allocations: 294.1 kB / 473 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.1009, allocations: 0.889 MB / 473.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.1013, allocations: 282.5 kB / 474.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.1015, allocations: 134.1 kB / 474.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.018e-05/0.1016, allocations: 7.938 kB / 474.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.1016, allocations: 34.56 kB / 474.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.333e-06/0.1016, allocations: 4 kB / 474.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.00114/0.1028, allocations: 0.5147 MB / 474.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.1028, allocations: 55.41 kB / 475 MB, free: 8.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.103, allocations: 169 kB / 475.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.103, allocations: 33.64 kB / 475.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.1031, allocations: 156.2 kB / 475.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/0.1031, allocations: 82.73 kB / 475.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.205e-05/0.1032, allocations: 65.69 kB / 475.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1033, allocations: 322.8 kB / 475.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.1035, allocations: 128 kB / 475.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.1037, allocations: 132 kB / 476 MB, free: 7.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.1041, allocations: 301 kB / 476.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1041, allocations: 0 / 476.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006131/0.1047, allocations: 398.1 kB / 476.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1047, allocations: 10.34 kB / 476.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.1048, allocations: 0 / 476.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.105, allocations: 52.81 kB / 476.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.1053, allocations: 63.91 kB / 476.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.1066, allocations: 1.547 MB / 478.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.1068, allocations: 23.72 kB / 478.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.1068, allocations: 12 kB / 478.4 MB, free: 5.301 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.000119/0.107, allocations: 133.8 kB / 478.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.534e-05/0.107, allocations: 23.84 kB / 478.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006174/0.1076, allocations: 343.8 kB / 478.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1076, allocations: 4 kB / 478.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.1076, allocations: 0 / 478.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1077, allocations: 3.984 kB / 478.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/0.108, allocations: 369.1 kB / 479.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.108, allocations: 0 / 479.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.1082, allocations: 43.92 kB / 479.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001882/0.1084, allocations: 52.81 kB / 479.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.1084, allocations: 4 kB / 479.4 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.1096, allocations: 1.535 MB / 480.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1096, allocations: 3.938 kB / 480.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005296/0.1101, allocations: 401.9 kB / 481.3 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.1102, allocations: 92.86 kB / 481.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.1102, allocations: 11.94 kB / 481.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.1104, allocations: 4 kB / 481.4 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.1104, allocations: 15.97 kB / 481.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.1104, allocations: 11.94 kB / 481.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.066e-05/0.1105, allocations: 128.9 kB / 481.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.302e-06/0.1105, allocations: 4 kB / 481.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003485/0.1109, allocations: 87.78 kB / 481.6 MB, free: 1.816 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.0008096/0.1117, allocations: 0.9552 MB / 482.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006971/0.1124, allocations: 422.3 kB / 483 MB, free: 412 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1124, allocations: 4 kB / 483 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003899/0.1128, allocations: 254.6 kB / 483.3 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002324/0.1131, allocations: 12 kB / 483.3 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/0.1158, allocations: 2.531 MB / 485.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.1161, allocations: 0.7396 MB / 486.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.1162, allocations: 37.52 kB / 486.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.1163, allocations: 71.41 kB / 486.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1163, allocations: 0 / 486.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/0.1408, allocations: 4.975 MB / 491.6 MB, free: 7.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.532/8.672, allocations: 11.64 kB / 491.6 MB, free: 7.754 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)