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.001223/0.001223, allocations: 104 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.001219/0.00122, allocations: 192.1 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.251/1.251, 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.04514/0.04514, allocations: 8.106 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 63.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08452, allocations: 51.53 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002538/0.08709, allocations: 1.563 MB / 467.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.08903, allocations: 1.559 MB / 468.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.08918, allocations: 4 kB / 468.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003674/0.08956, allocations: 127.3 kB / 468.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.08992, allocations: 111.2 kB / 468.9 MB, free: 15.29 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.001551/0.09148, allocations: 0.9218 MB / 469.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.09184, allocations: 250.8 kB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.092, allocations: 76.34 kB / 470.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.09213, allocations: 103.6 kB / 470.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.09232, allocations: 135.4 kB / 470.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.09237, allocations: 20 kB / 470.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003483/0.09272, allocations: 203.8 kB / 470.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.09278, allocations: 51.77 kB / 470.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.09291, allocations: 115.4 kB / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.09341, allocations: 398.6 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.09342, allocations: 4 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09343, allocations: 0 / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.09344, 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.002222/0.09567, allocations: 0.8224 MB / 471.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.09572, allocations: 11.89 kB / 471.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.72e-05/0.09578, allocations: 54.73 kB / 472 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.218e-05/0.09585, allocations: 24.66 kB / 472 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.09612, allocations: 256.7 kB / 472.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.09615, allocations: 12.38 kB / 472.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.09619, allocations: 20.38 kB / 472.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003782/0.09657, allocations: 261.9 kB / 472.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.09659, allocations: 3.938 kB / 472.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.09662, allocations: 8 kB / 472.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.09663, allocations: 7.938 kB / 472.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003535/0.09699, allocations: 251.6 kB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.09829, allocations: 1.148 MB / 474 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.09869, allocations: 300.1 kB / 474.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.09891, allocations: 161.3 kB / 474.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.643e-05/0.09898, allocations: 12.22 kB / 474.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003628/0.09935, allocations: 219.5 kB / 474.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.603e-06/0.09936, allocations: 0 / 474.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.00261/0.102, allocations: 0.9334 MB / 475.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.102, allocations: 59.34 kB / 475.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.1022, allocations: 187 kB / 475.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.1022, allocations: 29.7 kB / 475.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7e-05/0.1023, allocations: 124.9 kB / 476 MB, free: 7.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.047e-05/0.1024, allocations: 98.58 kB / 476.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.1025, allocations: 61.45 kB / 476.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1026, allocations: 334.8 kB / 476.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.1029, allocations: 152 kB / 476.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.1031, allocations: 190.9 kB / 476.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004758/0.1036, allocations: 358.3 kB / 477.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.1036, allocations: 4 kB / 477.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001479/0.1051, allocations: 0.6497 MB / 477.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1051, allocations: 8.031 kB / 477.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1051, allocations: 0 / 477.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.1066, allocations: 344.5 kB / 478.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.1068, allocations: 51.91 kB / 478.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.1103, allocations: 2.621 MB / 480.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.1105, allocations: 19.81 kB / 480.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.1106, allocations: 15.98 kB / 480.8 MB, free: 2.777 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.0001309/0.1107, allocations: 137.8 kB / 481 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.1107, allocations: 23.75 kB / 481 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.1123, allocations: 0.672 MB / 481.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1123, allocations: 7.938 kB / 481.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.1123, allocations: 0 / 481.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1123, allocations: 3.984 kB / 481.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.1127, allocations: 393.2 kB / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1127, allocations: 0 / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.1128, allocations: 43.91 kB / 482.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.1142, allocations: 332.5 kB / 482.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.1142, allocations: 4 kB / 482.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003515/0.1177, allocations: 2.613 MB / 485.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.1178, allocations: 8 kB / 485.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.1193, allocations: 0.6344 MB / 485.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.035e-05/0.1194, allocations: 100.7 kB / 485.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.538e-05/0.1194, allocations: 8 kB / 485.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.1197, allocations: 16.11 kB / 485.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.1198, allocations: 31.91 kB / 485.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.359e-05/0.1198, allocations: 15.98 kB / 485.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.1199, allocations: 131.8 kB / 486 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.1199, allocations: 4 kB / 486 MB, free: 13.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004109/0.1204, allocations: 95.92 kB / 486.1 MB, free: 13.28 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.001743/0.1221, allocations: 1.194 MB / 487.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.1234, allocations: 0.6116 MB / 487.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.1235, allocations: 4 kB / 487.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008896/0.1244, allocations: 439.6 kB / 488.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.1246, allocations: 23.98 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.004897/0.1295, allocations: 3.214 MB / 491.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.1298, allocations: 0.7453 MB / 492.3 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1299, allocations: 37.88 kB / 492.4 MB, free: 6.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.1301, allocations: 71.41 kB / 492.4 MB, free: 6.77 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1301, allocations: 0 / 492.4 MB, free: 6.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02848/0.1585, allocations: 8.388 MB / 0.4891 GB, free: 14.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.58, allocations: 17.22 kB / 0.4891 GB, free: 14.49 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)