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.001501/0.001501, allocations: 106 kB / 16.31 MB, free: 6.391 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.001693/0.001693, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.417/1.417, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.06846/0.06846, allocations: 8.107 MB / 299.2 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 59.91 kB / 361.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3078, allocations: 51.52 MB / 413.3 MB, free: 25.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003568/0.3114, allocations: 2.435 MB / 415.8 MB, free: 23.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002356/0.3138, allocations: 1.715 MB / 417.5 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003656/0.3142, allocations: 8 kB / 417.5 MB, free: 21.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005683/0.3148, allocations: 159 kB / 417.7 MB, free: 21.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007232/0.3155, allocations: 214.7 kB / 417.9 MB, free: 21.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001809/0.3174, allocations: 1.019 MB / 418.9 MB, free: 20.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007269/0.3181, allocations: 473.9 kB / 419.4 MB, free: 19.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002868/0.3184, allocations: 172.2 kB / 419.5 MB, free: 19.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002997/0.3187, allocations: 195.2 kB / 419.7 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003585/0.3191, allocations: 251 kB / 420 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.3192, allocations: 48 kB / 420 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000672/0.3199, allocations: 255.8 kB / 420.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.32, allocations: 99.59 kB / 420.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.3203, allocations: 230.9 kB / 420.6 MB, free: 18.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009773/0.3212, allocations: 0.6448 MB / 421.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.371e-06/0.3213, allocations: 0 / 421.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3213, allocations: 0 / 421.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.3213, allocations: 0 / 421.2 MB, free: 17.66 MB / 302.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.003309/0.3246, allocations: 1.179 MB / 422.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.3247, allocations: 19.83 kB / 422.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.587e-05/0.3247, allocations: 66.72 kB / 422.5 MB, free: 16.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002453/0.325, allocations: 68.36 kB / 422.6 MB, free: 16.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.3254, allocations: 355.5 kB / 422.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.3254, allocations: 29.03 kB / 422.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.3255, allocations: 32.38 kB / 423 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005986/0.3261, allocations: 454.5 kB / 423.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.3261, allocations: 3.938 kB / 423.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/0.3261, allocations: 12 kB / 423.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.3261, allocations: 8 kB / 423.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.3267, allocations: 458.4 kB / 423.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.3286, allocations: 1.991 MB / 425.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009115/0.3296, allocations: 0.6849 MB / 426.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003234/0.3299, allocations: 301.2 kB / 426.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.061e-05/0.33, allocations: 11.98 kB / 426.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005467/0.3305, allocations: 476.6 kB / 427.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.3305, allocations: 3.938 kB / 427.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.005388/0.3359, allocations: 1.791 MB / 429.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.336, allocations: 200.3 kB / 429.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.3363, allocations: 310.8 kB / 429.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.3364, allocations: 41.64 kB / 429.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.841e-05/0.3365, allocations: 164.9 kB / 429.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.817e-05/0.3366, allocations: 157.7 kB / 430 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.3367, allocations: 110.2 kB / 430.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.193e-05/0.3368, allocations: 346.8 kB / 430.4 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.3371, allocations: 273.1 kB / 430.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.3375, allocations: 339.8 kB / 431 MB, free: 7.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006745/0.3442, allocations: 2.09 MB / 433.1 MB, free: 5.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.3443, allocations: 7.875 kB / 433.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002413/0.3467, allocations: 1.188 MB / 434.3 MB, free: 3.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.3468, allocations: 33.64 kB / 434.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3468, allocations: 4 kB / 434.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/0.3488, allocations: 0.5258 MB / 434.9 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/0.3491, allocations: 79.84 kB / 434.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004899/0.354, allocations: 3.955 MB / 438.9 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004796/0.3545, allocations: 55.36 kB / 438.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.053e-05/0.3546, allocations: 20 kB / 439 MB, free: 15.18 MB / 318.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.0003286/0.3549, allocations: 236.3 kB / 439.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.355, allocations: 35.62 kB / 439.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/0.3577, allocations: 1.137 MB / 440.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.3577, allocations: 4 kB / 440.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3577, allocations: 3.984 kB / 440.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3577, allocations: 4 kB / 440.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003336/0.3611, allocations: 1.834 MB / 442.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.3611, allocations: 4 kB / 442.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.3613, allocations: 55.91 kB / 442.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002137/0.3634, allocations: 0.4964 MB / 442.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.936e-05/0.3635, allocations: 19.98 kB / 442.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005685/0.3692, allocations: 3.915 MB / 446.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3692, allocations: 4 kB / 446.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002697/0.3719, allocations: 1.183 MB / 447.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.3721, allocations: 124.5 kB / 448 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/0.3722, allocations: 16 kB / 448 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000327/0.3725, allocations: 23.92 kB / 448.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.3727, allocations: 40.39 kB / 448.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.493e-05/0.3727, allocations: 19.98 kB / 448.1 MB, free: 5.754 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.373, allocations: 221.9 kB / 448.3 MB, free: 5.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.373, allocations: 0 / 448.3 MB, free: 5.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006338/0.3736, allocations: 183.8 kB / 448.5 MB, free: 5.355 MB / 318.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.002929/0.3765, allocations: 1.759 MB / 450.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.3787, allocations: 1.008 MB / 451.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/0.3787, allocations: 4 kB / 451.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.38, allocations: 0.6726 MB / 452 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.3804, allocations: 44.81 kB / 452 MB, free: 1.781 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009005/0.3895, allocations: 5.298 MB / 457.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.3899, allocations: 0.8094 MB / 458.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.3901, allocations: 47.25 kB / 458.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.3903, allocations: 127.4 kB / 458.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3903, allocations: 0 / 458.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0438/0.4342, allocations: 15.04 MB / 473.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.85, allocations: 3.938 kB / 473.3 MB, free: 12.45 MB / 350.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)