Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",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.001087/0.001087, allocations: 103.1 kB / 16.45 MB, free: 6.488 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.001074/0.001074, allocations: 186.9 kB / 17.38 MB, free: 5.715 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.298/1.298, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05227/0.05227, allocations: 8.101 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.103, allocations: 51.51 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002909/0.106, allocations: 1.578 MB / 467.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00225/0.1082, allocations: 1.559 MB / 468.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.1084, allocations: 4 kB / 468.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004114/0.1089, allocations: 123.3 kB / 468.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003826/0.1093, allocations: 115.2 kB / 468.9 MB, free: 15.28 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.1111, allocations: 0.9102 MB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004409/0.1115, allocations: 250.8 kB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.1117, allocations: 76.36 kB / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.1119, allocations: 107.6 kB / 470.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.1122, allocations: 131.4 kB / 470.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.214e-05/0.1122, allocations: 20 kB / 470.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004454/0.1127, allocations: 199.8 kB / 470.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.525e-05/0.1127, allocations: 55.77 kB / 470.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.1129, allocations: 115.4 kB / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008018/0.1137, allocations: 398.6 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1138, allocations: 4 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1138, allocations: 0 / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.1138, allocations: 0 / 471.1 MB, free: 13.04 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002709/0.1165, allocations: 0.8263 MB / 471.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.1165, allocations: 8.031 kB / 471.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.962e-05/0.1166, allocations: 50.73 kB / 472 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.1168, allocations: 24.66 kB / 472 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004399/0.1172, allocations: 252.7 kB / 472.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.1172, allocations: 20.31 kB / 472.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.1173, allocations: 16.38 kB / 472.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000496/0.1178, allocations: 261.9 kB / 472.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1178, allocations: 3.938 kB / 472.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.1179, allocations: 16 kB / 472.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1179, allocations: 4 kB / 472.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004239/0.1183, allocations: 251.6 kB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.12, allocations: 1.148 MB / 474 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004662/0.1205, allocations: 300.1 kB / 474.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.1207, allocations: 161.3 kB / 474.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.108e-05/0.1208, allocations: 12.2 kB / 474.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004907/0.1213, allocations: 219.5 kB / 474.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 3.938e-06/0.1213, allocations: 4 kB / 474.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002877/0.1242, allocations: 0.9294 MB / 475.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.1242, allocations: 55.41 kB / 475.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002102/0.1245, allocations: 183 kB / 475.8 MB, free: 8.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.1245, allocations: 29.7 kB / 475.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.518e-05/0.1246, allocations: 124.9 kB / 476 MB, free: 7.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.202e-05/0.1247, allocations: 94.59 kB / 476.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.1248, allocations: 69.45 kB / 476.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.125, allocations: 330.8 kB / 476.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.1252, allocations: 148 kB / 476.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.1255, allocations: 186.9 kB / 476.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005057/0.126, allocations: 358.3 kB / 477.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.126, allocations: 8 kB / 477.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001622/0.1277, allocations: 0.6575 MB / 477.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1277, allocations: 4 kB / 477.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1277, allocations: 4 kB / 477.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/0.1293, allocations: 340.5 kB / 478.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.1295, allocations: 51.91 kB / 478.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/0.1334, allocations: 2.632 MB / 480.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.1336, allocations: 27.73 kB / 480.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.1337, allocations: 8 kB / 480.8 MB, free: 2.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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 {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.1338, allocations: 141.8 kB / 481 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.032e-05/0.1339, allocations: 23.75 kB / 481 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.1355, allocations: 0.6602 MB / 481.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.1356, allocations: 7.938 kB / 481.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1356, allocations: 3.984 kB / 481.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1356, allocations: 0 / 481.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.1359, allocations: 393.3 kB / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1359, allocations: 0 / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.1361, allocations: 51.91 kB / 482.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001437/0.1376, allocations: 332.7 kB / 482.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.658e-05/0.1376, allocations: 4 kB / 482.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003441/0.141, allocations: 2.613 MB / 485.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1411, allocations: 0 / 485.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.1426, allocations: 0.6344 MB / 485.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.681e-05/0.1427, allocations: 104.7 kB / 485.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.1427, allocations: 8 kB / 485.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.1429, allocations: 19.92 kB / 485.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.143, allocations: 23.95 kB / 485.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.1431, allocations: 12 kB / 485.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.1432, allocations: 131.8 kB / 486 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1432, allocations: 0 / 486 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004175/0.1436, allocations: 95.98 kB / 486.1 MB, free: 13.29 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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 {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001859/0.1455, allocations: 1.198 MB / 487.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.1469, allocations: 0.6156 MB / 487.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.147, allocations: 4 kB / 487.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009901/0.148, allocations: 447.5 kB / 488.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.1482, allocations: 24 kB / 488.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005275/0.1535, allocations: 3.208 MB / 491.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1539, allocations: 0.7493 MB / 492.3 MB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.154, allocations: 37.92 kB / 492.3 MB, free: 6.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.1541, allocations: 67.41 kB / 492.4 MB, free: 6.766 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1541, allocations: 0 / 492.4 MB, free: 6.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.1819, allocations: 8.654 MB / 0.4893 GB, free: 14.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.57, allocations: 352 / 0.4893 GB, free: 14.23 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)