Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.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.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",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.001012/0.001012, allocations: 107 kB / 16.03 MB, free: 6.273 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.001021/0.001021, allocations: 193.7 kB / 16.95 MB, free: 6.098 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.298/1.298, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04702/0.04702, allocations: 8.095 MB / 298.9 MB, free: 6.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 71.88 kB / 361.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.221, allocations: 51.51 MB / 412.8 MB, free: 25.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.006084/0.2271, allocations: 8.763 MB / 421.6 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003189/0.2304, allocations: 2.312 MB / 423.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005118/0.2309, allocations: 28 kB / 423.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006491/0.2315, allocations: 330.4 kB / 424.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001245/0.2328, allocations: 0.746 MB / 425 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.235, allocations: 1.5 MB / 426.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.2364, allocations: 1.875 MB / 428.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006145/0.237, allocations: 0.696 MB / 429.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005375/0.2376, allocations: 0.7823 MB / 429.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006895/0.2383, allocations: 0.9844 MB / 430.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.2384, allocations: 188 kB / 431 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005452/0.239, allocations: 431.8 kB / 431.5 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.2392, allocations: 402.5 kB / 431.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004991/0.2397, allocations: 0.9099 MB / 432.8 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00136/0.2411, allocations: 2.286 MB / 435 MB, free: 3.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2411, allocations: 0 / 435 MB, free: 3.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2411, allocations: 0 / 435 MB, free: 3.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.433e-05/0.2411, allocations: 0 / 435 MB, free: 3.473 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.01414/0.2553, allocations: 4.148 MB / 439.2 MB, free: 15.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2553, allocations: 11.89 kB / 439.2 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002552/0.2556, allocations: 189.7 kB / 439.4 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003714/0.2559, allocations: 182.9 kB / 439.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/0.2572, allocations: 0.9364 MB / 440.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.2573, allocations: 170.8 kB / 440.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/0.2575, allocations: 136.4 kB / 440.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002985/0.2605, allocations: 2.021 MB / 442.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.2606, allocations: 4 kB / 442.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001523/0.2607, allocations: 55.98 kB / 442.9 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.2608, allocations: 28 kB / 442.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002681/0.2634, allocations: 1.942 MB / 444.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009953/0.2734, allocations: 8.224 MB / 453.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004342/0.2778, allocations: 4.579 MB / 457.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/0.2797, allocations: 1.407 MB / 459.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001936/0.2799, allocations: 57.86 kB / 459.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002205/0.2822, allocations: 1.444 MB / 460.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=201): time 3.727e-06/0.2822, allocations: 0 / 460.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=201): time 0.05713/0.3393, allocations: 13.23 MB / 473.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.3394, allocations: 180.2 kB / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.3407, allocations: 0.8097 MB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003574/0.3411, allocations: 77.7 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/0.3415, allocations: 430.9 kB / 475.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006385/0.3421, allocations: 0.6659 MB / 475.9 MB, free: 9.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006754/0.3428, allocations: 387.9 kB / 476.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.343, allocations: 353.9 kB / 476.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/0.3449, allocations: 1.262 MB / 477.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.3468, allocations: 1.43 MB / 479.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003927/0.3508, allocations: 2.807 MB / 482.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3508, allocations: 0 / 482.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01286/0.3637, allocations: 5.259 MB / 487.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.3637, allocations: 4 kB / 487.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3637, allocations: 3.984 kB / 487.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01394/0.3777, allocations: 3.833 MB / 491.3 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.379, allocations: 319.5 kB / 491.6 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0297/0.4087, allocations: 15.87 MB / 0.4955 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.4105, allocations: 205.9 kB / 0.4957 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/0.4107, allocations: 71.98 kB / 0.4958 GB, free: 9.145 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,n.y,cmd.pulseStart,$PRE.cmd.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 186 * 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 {(28,58)} Notification: Performance of prepare postOptimizeDAE: time 0.0007253/0.4114, allocations: 373.5 kB / 0.4962 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002928/0.4117, allocations: 138.3 kB / 0.4963 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01311/0.4248, allocations: 5.198 MB / 0.5014 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-05/0.4249, allocations: 24 kB / 0.5014 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4249, allocations: 0 / 0.5014 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-05/0.425, allocations: 11.95 kB / 0.5014 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1816/0.6066, allocations: 7.749 MB / 0.509 GB, free: 90.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/0.6066, allocations: 0 / 0.509 GB, free: 90.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008323/0.6075, allocations: 237.7 kB / 0.5092 GB, free: 90.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01292/0.6204, allocations: 3.282 MB / 0.5124 GB, free: 90.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002868/0.6207, allocations: 47.88 kB / 0.5125 GB, free: 90 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02379/0.6445, allocations: 15.66 MB / 0.5277 GB, free: 79.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6445, allocations: 4.688 kB / 0.5278 GB, free: 79.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/0.656, allocations: 5.023 MB / 0.5327 GB, free: 75.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003736/0.6564, allocations: 248.4 kB / 0.5329 GB, free: 75.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003317/0.6567, allocations: 43.98 kB / 0.5329 GB, free: 75.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.658, allocations: 110.5 kB / 0.533 GB, free: 75.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006542/0.6587, allocations: 182.7 kB / 0.5332 GB, free: 74.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/0.6588, allocations: 65.73 kB / 0.5333 GB, free: 74.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006468/0.6595, allocations: 0.5381 MB / 0.5338 GB, free: 74.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6595, allocations: 0 / 0.5338 GB, free: 74.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001922/0.6614, allocations: 0.7334 MB / 0.5345 GB, free: 73.65 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: 3 ($whenCondition1,cmd.pulseStart,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(28,58)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01132/0.6727, allocations: 5.653 MB / 0.54 GB, free: 67.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009775/0.6825, allocations: 4.205 MB / 0.5441 GB, free: 63.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.6826, allocations: 5.281 kB / 0.5442 GB, free: 63.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005552/0.6881, allocations: 2.613 MB / 0.5467 GB, free: 61.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.6894, allocations: 189.1 kB / 0.5469 GB, free: 60.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03458/0.7239, allocations: 20.41 MB / 0.5668 GB, free: 40.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007916/0.7248, allocations: 1.231 MB / 0.568 GB, free: 38.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009444/0.7258, allocations: 201.5 kB / 0.5682 GB, free: 38.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00067/0.7264, allocations: 0.55 MB / 0.5687 GB, free: 38.05 MB / 382.1 MB Notification: Performance of SimCode: time 1.874e-06/0.7264, allocations: 0 / 0.5687 GB, free: 38.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08643/0.8129, allocations: 64.91 MB / 0.6321 GB, free: 5.488 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/0.8132, allocations: 260.6 kB / 0.6324 GB, free: 5.199 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.926/3.739, allocations: 5.641 kB / 0.6324 GB, free: 5.195 MB / 414.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe 2>&1)