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.001168/0.001168, allocations: 105 kB / 16.45 MB, free: 6.441 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.001328/0.001328, allocations: 189.5 kB / 17.39 MB, free: 5.688 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.32/1.32, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04525/0.04525, allocations: 8.094 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 67.88 kB / 414 MB, free: 22.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09647, allocations: 51.52 MB / 465.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003542/0.1001, allocations: 2.453 MB / 467.9 MB, free: 232 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.1026, allocations: 1.715 MB / 469.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.103, allocations: 8 kB / 469.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005092/0.1035, allocations: 163 kB / 469.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006739/0.1042, allocations: 210.7 kB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.1067, allocations: 1.031 MB / 471.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00106/0.1077, allocations: 469.9 kB / 471.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.1081, allocations: 180.1 kB / 471.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002862/0.1084, allocations: 187.3 kB / 471.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004398/0.1089, allocations: 258.9 kB / 472.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.109, allocations: 44 kB / 472.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005273/0.1095, allocations: 255.8 kB / 472.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1096, allocations: 95.61 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.1099, allocations: 238.8 kB / 472.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009049/0.1108, allocations: 0.6424 MB / 473.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1108, allocations: 0 / 473.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1109, allocations: 0 / 473.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.115e-05/0.1109, allocations: 0 / 473.4 MB, free: 10.75 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.003799/0.1147, allocations: 1.183 MB / 474.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.1147, allocations: 11.89 kB / 474.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.1149, allocations: 70.72 kB / 474.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002713/0.1152, allocations: 56.45 kB / 474.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/0.1157, allocations: 363.4 kB / 475.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.1158, allocations: 25.03 kB / 475.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.542e-05/0.1158, allocations: 36.38 kB / 475.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007408/0.1166, allocations: 450.5 kB / 475.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.1166, allocations: 7.938 kB / 475.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.913e-05/0.1166, allocations: 15.94 kB / 475.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.1167, allocations: 8 kB / 475.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006839/0.1174, allocations: 454.4 kB / 476 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002606/0.12, allocations: 1.983 MB / 478 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.1211, allocations: 0.6897 MB / 478.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.1215, allocations: 301.2 kB / 479 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.33e-05/0.1216, allocations: 8 kB / 479 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007225/0.1223, allocations: 476.4 kB / 479.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.873e-06/0.1224, allocations: 0 / 479.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005785/0.1281, allocations: 1.795 MB / 481.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1283, allocations: 196.3 kB / 481.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003543/0.1286, allocations: 306.9 kB / 481.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/0.1287, allocations: 41.7 kB / 481.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1288, allocations: 168.8 kB / 482 MB, free: 1.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.129, allocations: 169.5 kB / 482.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/0.1293, allocations: 102.2 kB / 482.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.1295, allocations: 346.8 kB / 482.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.1299, allocations: 277.1 kB / 482.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.1305, allocations: 347.7 kB / 483.2 MB, free: 428 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007252/0.1377, allocations: 2.078 MB / 485.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.1377, allocations: 3.938 kB / 485.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002644/0.1404, allocations: 1.18 MB / 486.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/0.1404, allocations: 37.62 kB / 486.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1405, allocations: 4 kB / 486.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002181/0.1426, allocations: 0.5198 MB / 487 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.143, allocations: 75.91 kB / 487.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005587/0.1486, allocations: 3.97 MB / 491.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.149, allocations: 43.53 kB / 491.1 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.191e-05/0.149, allocations: 27.98 kB / 491.1 MB, free: 8.281 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.0002923/0.1493, allocations: 228 kB / 491.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.594e-05/0.1494, allocations: 35.62 kB / 491.4 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.152, allocations: 1.137 MB / 492.5 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.152, allocations: 4 kB / 492.5 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.152, allocations: 0 / 492.5 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.152, allocations: 7.922 kB / 492.5 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003278/0.1553, allocations: 1.83 MB / 494.4 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1553, allocations: 0 / 494.4 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.1555, allocations: 51.92 kB / 494.4 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.1576, allocations: 0.5064 MB / 494.9 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.4e-05/0.1576, allocations: 15.98 kB / 494.9 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005441/0.1631, allocations: 3.908 MB / 498.8 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1631, allocations: 3.938 kB / 498.8 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.1656, allocations: 1.184 MB / 0.4883 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.1658, allocations: 124.5 kB / 0.4884 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.225e-05/0.1659, allocations: 19.94 kB / 0.4884 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/0.1662, allocations: 23.98 kB / 0.4885 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.1663, allocations: 40.33 kB / 0.4885 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/0.1664, allocations: 19.98 kB / 0.4885 GB, free: 14.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002481/0.1666, allocations: 222 kB / 0.4887 GB, free: 14.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1666, allocations: 0 / 0.4887 GB, free: 14.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006205/0.1673, allocations: 183.8 kB / 0.4889 GB, free: 14.46 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.002823/0.1701, allocations: 1.763 MB / 0.4906 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.1719, allocations: 0.9887 MB / 0.4916 GB, free: 11.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1719, allocations: 3.938 kB / 0.4916 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.1731, allocations: 0.6844 MB / 0.4923 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.1735, allocations: 43.41 kB / 0.4923 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008733/0.1822, allocations: 5.244 MB / 0.4974 GB, free: 5.523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.1827, allocations: 0.8055 MB / 0.4982 GB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.1828, allocations: 43.25 kB / 0.4983 GB, free: 4.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.183, allocations: 131.4 kB / 0.4984 GB, free: 4.523 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.183, allocations: 8 kB / 0.4984 GB, free: 4.516 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2574/0.4404, allocations: 15.71 MB / 0.5137 GB, free: 44.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.35, allocations: 9.938 kB / 0.5138 GB, free: 44.09 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)