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.003875/0.003875, allocations: 93.11 kB / 15.91 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.000996/0.0009961, allocations: 199.1 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.254/1.254, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1306/0.1306, allocations: 8.08 MB / 298.7 MB, free: 2.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 60.14 kB / 361.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08337/0.08448, allocations: 51.52 MB / 412.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.00257/0.08708, allocations: 1.614 MB / 414.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.08879, allocations: 1.547 MB / 415.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.578e-05/0.08886, allocations: 0 / 415.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003251/0.0892, allocations: 115.6 kB / 415.9 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002363/0.08945, allocations: 95.44 kB / 416 MB, free: 6.691 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.001478/0.09094, allocations: 0.9027 MB / 416.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002576/0.09121, allocations: 238.8 kB / 417.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.09134, allocations: 64.11 kB / 417.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.234e-05/0.09144, allocations: 95.58 kB / 417.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.0916, allocations: 127.4 kB / 417.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.484e-05/0.09164, allocations: 16 kB / 417.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003044/0.09195, allocations: 199.8 kB / 417.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.479e-05/0.09201, allocations: 43.78 kB / 417.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.09212, allocations: 111.4 kB / 417.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004179/0.09255, allocations: 387.1 kB / 418.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.09256, allocations: 0 / 418.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.09256, allocations: 0 / 418.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.636e-06/0.09257, allocations: 4 kB / 418.2 MB, free: 4.527 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.002307/0.09488, allocations: 0.8287 MB / 419 MB, free: 3.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.09492, allocations: 8.031 kB / 419 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.027e-05/0.09499, allocations: 50.73 kB / 419.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.317e-05/0.09506, allocations: 28.66 kB / 419.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.09533, allocations: 248.8 kB / 419.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.09535, allocations: 20.16 kB / 419.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.09539, allocations: 16.38 kB / 419.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/0.09581, allocations: 269.9 kB / 419.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.09583, allocations: 7.875 kB / 419.6 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.09586, allocations: 8 kB / 419.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.09587, allocations: 7.938 kB / 419.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003651/0.09624, allocations: 243.7 kB / 419.9 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.09762, allocations: 1.152 MB / 421.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/0.09805, allocations: 303.2 kB / 421.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.09828, allocations: 161.3 kB / 421.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.975e-05/0.09834, allocations: 8.219 kB / 421.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003667/0.09871, allocations: 223.5 kB / 421.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.09872, allocations: 4 kB / 421.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002735/0.1015, allocations: 0.9244 MB / 422.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.1015, allocations: 59.41 kB / 422.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.1017, allocations: 187 kB / 422.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.1017, allocations: 33.7 kB / 422.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.404e-05/0.1018, allocations: 124.9 kB / 423.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.892e-05/0.1019, allocations: 98.5 kB / 423.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.816e-05/0.102, allocations: 57.7 kB / 423.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.404e-05/0.1021, allocations: 334.8 kB / 423.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.1023, allocations: 148 kB / 423.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.1025, allocations: 187.1 kB / 423.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000489/0.103, allocations: 366.2 kB / 424.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1031, allocations: 0 / 424.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001554/0.1046, allocations: 0.6498 MB / 424.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.1046, allocations: 8 kB / 424.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1047, allocations: 0 / 424.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/0.1062, allocations: 340.5 kB / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.1064, allocations: 55.91 kB / 425.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003397/0.1098, allocations: 2.424 MB / 427.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.11, allocations: 23.81 kB / 427.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.11, allocations: 12 kB / 427.7 MB, free: 10.47 MB / 366.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.0001395/0.1102, allocations: 137.8 kB / 427.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.45e-05/0.1102, allocations: 23.72 kB / 427.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.1119, allocations: 0.6591 MB / 428.5 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1119, allocations: 4 kB / 428.5 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.1119, allocations: 0 / 428.5 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1119, allocations: 7.922 kB / 428.6 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003394/0.1123, allocations: 393.2 kB / 428.9 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1123, allocations: 0 / 428.9 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.1125, allocations: 51.91 kB / 429 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001561/0.114, allocations: 332.5 kB / 429.3 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.1141, allocations: 4 kB / 429.3 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003334/0.1174, allocations: 2.406 MB / 431.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1174, allocations: 0 / 431.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.119, allocations: 0.632 MB / 432.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.377e-05/0.1191, allocations: 100.8 kB / 432.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.1191, allocations: 8 kB / 432.5 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.1193, allocations: 12 kB / 432.5 MB, free: 5.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.305e-05/0.1194, allocations: 27.89 kB / 432.5 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.1194, allocations: 19.94 kB / 432.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.1195, allocations: 139.5 kB / 432.7 MB, free: 5.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1195, allocations: 0 / 432.7 MB, free: 5.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003909/0.1199, allocations: 95.84 kB / 432.8 MB, free: 5.203 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.001819/0.1218, allocations: 1.184 MB / 433.9 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.1231, allocations: 0.6119 MB / 434.5 MB, free: 3.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1232, allocations: 4.062 kB / 434.6 MB, free: 3.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009449/0.1241, allocations: 430.3 kB / 435 MB, free: 2.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.1244, allocations: 33.89 kB / 435 MB, free: 2.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1369/0.2613, allocations: 3.261 MB / 438.3 MB, free: 56.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.2615, allocations: 0.745 MB / 439 MB, free: 55.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001626/0.2617, allocations: 33.92 kB / 439 MB, free: 55.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.2618, allocations: 72.95 kB / 439.1 MB, free: 55.7 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2618, allocations: 1.625 kB / 439.1 MB, free: 55.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.2782, allocations: 7.811 MB / 446.9 MB, free: 55.24 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/0.2784, allocations: 239.1 kB / 447.2 MB, free: 54.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/1.972, allocations: 2.516 kB / 447.2 MB, free: 54.98 MB / 366.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)