Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",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.001383/0.001383, allocations: 104.9 kB / 16.45 MB, free: 5.965 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.001381/0.001381, allocations: 195.9 kB / 17.39 MB, free: 5.531 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.428/1.428, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05049/0.05049, allocations: 8.113 MB / 299.4 MB, free: 6.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.91 kB / 414 MB, free: 22.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09038/0.09241, allocations: 51.51 MB / 465.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003612/0.09606, allocations: 2.453 MB / 468 MB, free: 324 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002567/0.09865, allocations: 1.711 MB / 469.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.0988, allocations: 8 kB / 469.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004062/0.09921, allocations: 163 kB / 469.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004427/0.09968, allocations: 206.7 kB / 470 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.1017, allocations: 1.046 MB / 471.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006284/0.1023, allocations: 465.9 kB / 471.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002888/0.1026, allocations: 176.1 kB / 471.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.1028, allocations: 187.3 kB / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003567/0.1032, allocations: 262.9 kB / 472.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.088e-05/0.1033, allocations: 44 kB / 472.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.1038, allocations: 251.8 kB / 472.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.1039, allocations: 95.61 kB / 472.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.1041, allocations: 234.8 kB / 472.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000807/0.1049, allocations: 0.6465 MB / 473.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1049, allocations: 3.984 kB / 473.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.105, allocations: 0 / 473.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.105, allocations: 4 kB / 473.4 MB, free: 10.83 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003879/0.1089, allocations: 1.19 MB / 474.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1089, allocations: 19.83 kB / 474.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.109, allocations: 66.72 kB / 474.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002853/0.1093, allocations: 72.62 kB / 474.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004951/0.1098, allocations: 355.6 kB / 475.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.1099, allocations: 29.03 kB / 475.1 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.1099, allocations: 28.38 kB / 475.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007471/0.1107, allocations: 454.5 kB / 475.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.1107, allocations: 3.938 kB / 475.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.36e-05/0.1108, allocations: 12 kB / 475.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.1108, allocations: 11.94 kB / 475.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006999/0.1115, allocations: 454.5 kB / 476.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002603/0.1141, allocations: 1.991 MB / 478.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.1153, allocations: 0.6819 MB / 478.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/0.1157, allocations: 301.2 kB / 479 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.277e-05/0.1158, allocations: 15.98 kB / 479.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007188/0.1165, allocations: 472.5 kB / 479.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.565e-06/0.1166, allocations: 0 / 479.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.006101/0.1227, allocations: 1.799 MB / 481.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.1228, allocations: 200.3 kB / 481.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.1232, allocations: 307 kB / 481.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.1233, allocations: 37.7 kB / 481.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.1234, allocations: 169 kB / 482 MB, free: 1.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.1236, allocations: 166.6 kB / 482.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.1238, allocations: 106.2 kB / 482.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1239, allocations: 350.8 kB / 482.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/0.1244, allocations: 273.1 kB / 482.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005031/0.1249, allocations: 343.7 kB / 483.2 MB, free: 488 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007889/0.1328, allocations: 2.085 MB / 485.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.1328, allocations: 3.938 kB / 485.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002978/0.1358, allocations: 1.18 MB / 486.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.699e-05/0.1359, allocations: 41.62 kB / 486.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.1359, allocations: 4 kB / 486.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002328/0.1383, allocations: 0.5158 MB / 487.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.1386, allocations: 75.91 kB / 487.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006345/0.145, allocations: 3.978 MB / 491.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004764/0.1455, allocations: 43.67 kB / 491.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.512e-05/0.1455, allocations: 23.98 kB / 491.2 MB, free: 8.324 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0003257/0.1459, allocations: 224 kB / 491.4 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.903e-05/0.146, allocations: 39.77 kB / 491.4 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00284/0.1488, allocations: 1.129 MB / 492.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.1488, allocations: 12 kB / 492.6 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1489, allocations: 0 / 492.6 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.1489, allocations: 7.922 kB / 492.6 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003592/0.1525, allocations: 1.83 MB / 494.4 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.1525, allocations: 0 / 494.4 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.1527, allocations: 51.91 kB / 494.5 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002233/0.1549, allocations: 0.5003 MB / 495 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.155, allocations: 15.98 kB / 495 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006158/0.1611, allocations: 3.923 MB / 498.9 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1612, allocations: 0 / 498.9 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002836/0.164, allocations: 1.185 MB / 0.4884 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.1642, allocations: 124.7 kB / 0.4885 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.145e-05/0.1643, allocations: 19.94 kB / 0.4885 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.1646, allocations: 19.98 kB / 0.4885 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.1648, allocations: 40.33 kB / 0.4886 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.1648, allocations: 23.98 kB / 0.4886 GB, free: 14.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002832/0.1651, allocations: 214 kB / 0.4888 GB, free: 14.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1651, allocations: 4 kB / 0.4888 GB, free: 14.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006648/0.1658, allocations: 187.9 kB / 0.489 GB, free: 14.5 MB / 382.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003135/0.169, allocations: 1.763 MB / 0.4907 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.171, allocations: 0.9964 MB / 0.4917 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.171, allocations: 256 / 0.4917 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.1724, allocations: 0.6801 MB / 0.4923 GB, free: 10.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004627/0.1729, allocations: 48.77 kB / 0.4924 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009668/0.1826, allocations: 5.266 MB / 0.4975 GB, free: 5.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/0.1831, allocations: 0.8055 MB / 0.4983 GB, free: 4.707 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001788/0.1833, allocations: 51.25 kB / 0.4984 GB, free: 4.656 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.1835, allocations: 131.4 kB / 0.4985 GB, free: 4.531 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1835, allocations: 0 / 0.4985 GB, free: 4.531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2405/0.424, allocations: 15.21 MB / 0.5133 GB, free: 44.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.45, allocations: 15.25 kB / 0.5133 GB, free: 44.17 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)