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.001918/0.001918, allocations: 104.7 kB / 16.45 MB, free: 6.453 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.00201/0.00201, allocations: 186.4 kB / 17.38 MB, free: 5.691 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.36/1.36, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0514/0.0514, allocations: 8.096 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 63.89 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.08729, allocations: 51.51 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002759/0.09009, allocations: 1.574 MB / 467.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.09223, allocations: 1.563 MB / 468.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.777e-05/0.09232, allocations: 4 kB / 468.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003749/0.09271, allocations: 123.3 kB / 468.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002915/0.09302, allocations: 119.3 kB / 468.9 MB, free: 15.27 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.001718/0.09475, allocations: 0.9101 MB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003602/0.09512, allocations: 246.8 kB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.09531, allocations: 80.33 kB / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.09543, allocations: 107.6 kB / 470.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.09565, allocations: 131.5 kB / 470.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.731e-05/0.09569, allocations: 20 kB / 470.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003783/0.09608, allocations: 207.8 kB / 470.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.305e-05/0.09614, allocations: 47.83 kB / 470.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.09627, allocations: 119.3 kB / 470.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005323/0.09681, allocations: 395 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.09682, allocations: 0 / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09683, allocations: 0 / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.09683, 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.002487/0.09933, allocations: 0.8335 MB / 471.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.09938, allocations: 15.89 kB / 472 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.544e-05/0.09945, allocations: 50.67 kB / 472 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.716e-05/0.09952, allocations: 28.8 kB / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.09987, allocations: 268.7 kB / 472.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.09991, allocations: 20.38 kB / 472.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/0.09994, allocations: 16.38 kB / 472.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004527/0.1004, allocations: 261.9 kB / 472.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.1004, allocations: 3.938 kB / 472.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.1005, allocations: 4 kB / 472.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.1005, allocations: 4 kB / 472.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004059/0.1009, allocations: 247.7 kB / 472.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.1024, allocations: 1.137 MB / 474 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.1029, allocations: 308 kB / 474.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.1032, allocations: 169.3 kB / 474.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.295e-05/0.1032, allocations: 4.234 kB / 474.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004274/0.1037, allocations: 219.5 kB / 474.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.854e-06/0.1037, allocations: 0 / 474.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002918/0.1066, allocations: 0.9257 MB / 475.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.1066, allocations: 59.34 kB / 475.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.1069, allocations: 191 kB / 475.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.1069, allocations: 37.7 kB / 475.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.24e-05/0.107, allocations: 121 kB / 476 MB, free: 7.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.777e-05/0.1071, allocations: 107 kB / 476.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.1072, allocations: 65.44 kB / 476.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1074, allocations: 326.8 kB / 476.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.1076, allocations: 152 kB / 476.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.1079, allocations: 190.9 kB / 476.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000556/0.1085, allocations: 366.3 kB / 477.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1085, allocations: 0 / 477.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001661/0.1101, allocations: 0.6422 MB / 477.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1102, allocations: 8 kB / 477.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1102, allocations: 4.031 kB / 477.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/0.1118, allocations: 352.3 kB / 478.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.112, allocations: 47.98 kB / 478.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004126/0.1161, allocations: 2.629 MB / 480.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.1164, allocations: 23.91 kB / 480.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/0.1164, allocations: 12 kB / 480.9 MB, free: 2.738 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.0001586/0.1166, allocations: 137.8 kB / 481 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.1166, allocations: 23.8 kB / 481 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.1184, allocations: 0.6642 MB / 481.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.1184, allocations: 11.94 kB / 481.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.1184, allocations: 0 / 481.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1184, allocations: 0 / 481.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003999/0.1188, allocations: 401.2 kB / 482.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1188, allocations: 0 / 482.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.119, allocations: 39.98 kB / 482.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/0.1205, allocations: 336.4 kB / 482.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.1205, allocations: 8 kB / 482.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003942/0.1245, allocations: 2.614 MB / 485.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1245, allocations: 0 / 485.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.1261, allocations: 0.6384 MB / 485.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.1262, allocations: 104.9 kB / 485.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.1263, allocations: 4 kB / 485.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.1265, allocations: 19.5 kB / 485.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-05/0.1265, allocations: 35.89 kB / 485.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.1266, allocations: 16.12 kB / 485.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.1267, allocations: 135.7 kB / 486 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1267, allocations: 0 / 486 MB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003932/0.1271, allocations: 95.94 kB / 486.1 MB, free: 13.24 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.002035/0.1292, allocations: 1.187 MB / 487.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.1307, allocations: 0.6271 MB / 487.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1307, allocations: 0 / 487.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.1317, allocations: 443.5 kB / 488.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.132, allocations: 27.28 kB / 488.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005527/0.1376, allocations: 3.211 MB / 491.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.138, allocations: 0.7415 MB / 492.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.1381, allocations: 41.91 kB / 492.4 MB, free: 6.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.1382, allocations: 67.41 kB / 492.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1382, allocations: 0 / 492.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.1724, allocations: 8.392 MB / 0.4891 GB, free: 14.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.62, allocations: 9.234 kB / 0.4891 GB, free: 14.45 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)