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.0009327/0.0009327, allocations: 96.94 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 181.6 kB / 16.96 MB, free: 6.895 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.333/1.333, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1666/0.1666, allocations: 8.085 MB / 300.2 MB, free: 2.941 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002876, allocations: 8 kB / 363.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08597/0.08628, allocations: 52.51 MB / 416.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.007101/0.09342, allocations: 8.233 MB / 424.3 MB, free: 4 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004239/0.2622, allocations: 2.287 MB / 426.6 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009262/0.2632, allocations: 25.44 kB / 426.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008458/0.2641, allocations: 346.1 kB / 427 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002663/0.2667, allocations: 0.7327 MB / 427.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002811/0.2696, allocations: 1.527 MB / 429.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002296/0.2719, allocations: 1.769 MB / 431 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007542/0.2726, allocations: 0.5768 MB / 431.6 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006489/0.2733, allocations: 0.6537 MB / 432.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009183/0.2742, allocations: 0.868 MB / 433.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001636/0.2744, allocations: 82.91 kB / 433.2 MB, free: 33.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007777/0.2752, allocations: 315.6 kB / 433.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.2754, allocations: 296.7 kB / 433.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000583/0.276, allocations: 0.8121 MB / 434.6 MB, free: 33.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001655/0.2776, allocations: 2.15 MB / 436.8 MB, free: 33.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2776, allocations: 0 / 436.8 MB, free: 33.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2776, allocations: 0 / 436.8 MB, free: 33.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.72e-05/0.2777, allocations: 0 / 436.8 MB, free: 33.13 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.01472/0.2924, allocations: 3.883 MB / 440.6 MB, free: 32.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.2924, allocations: 9.344 kB / 440.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003854/0.2928, allocations: 181.5 kB / 440.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003301/0.2932, allocations: 185.2 kB / 441 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/0.2943, allocations: 0.9321 MB / 441.9 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.465e-05/0.2944, allocations: 167 kB / 442.1 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002078/0.2946, allocations: 138.4 kB / 442.2 MB, free: 31.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00267/0.2973, allocations: 2.027 MB / 444.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.2973, allocations: 0 / 444.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001467/0.2975, allocations: 52.62 kB / 444.3 MB, free: 30.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.2975, allocations: 27.28 kB / 444.3 MB, free: 30.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002414/0.2999, allocations: 1.949 MB / 446.3 MB, free: 29.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008375/0.3083, allocations: 8.266 MB / 454.6 MB, free: 23.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003449/0.3118, allocations: 4.589 MB / 459.2 MB, free: 20 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/0.3135, allocations: 1.4 MB / 460.6 MB, free: 19.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/0.3136, allocations: 50.02 kB / 460.6 MB, free: 19.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001862/0.3155, allocations: 1.436 MB / 462 MB, free: 18.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=201): time 3.677e-06/0.3155, allocations: 0 / 462 MB, free: 18.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=201): time 0.05824/0.3738, allocations: 13.21 MB / 475.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.3739, allocations: 180.6 kB / 475.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/0.3752, allocations: 0.8093 MB / 476.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005727/0.3758, allocations: 74.17 kB / 476.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003253/0.3762, allocations: 433.8 kB / 476.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005281/0.3767, allocations: 0.6599 MB / 477.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.377, allocations: 194.9 kB / 477.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.384e-05/0.377, allocations: 365.5 kB / 477.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/0.3789, allocations: 1.257 MB / 479.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002042/0.381, allocations: 1.431 MB / 480.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004083/0.3851, allocations: 2.804 MB / 483.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-06/0.3851, allocations: 4 kB / 483.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01296/0.3981, allocations: 5.266 MB / 488.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3981, allocations: 5.469 kB / 488.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3982, allocations: 5.297 kB / 488.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01328/0.4114, allocations: 3.829 MB / 492.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.4129, allocations: 315.6 kB / 492.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0262/0.4391, allocations: 14.46 MB / 0.4954 GB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.4408, allocations: 194 kB / 0.4956 GB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/0.441, allocations: 75.97 kB / 0.4957 GB, free: 4.93 MB / 366.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.0007467/0.4418, allocations: 365.5 kB / 0.496 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.442, allocations: 146.2 kB / 0.4962 GB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01381/0.4559, allocations: 5.21 MB / 0.5012 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.4559, allocations: 28 kB / 0.5013 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4559, allocations: 0 / 0.5013 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-05/0.456, allocations: 7.969 kB / 0.5013 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01658/0.4725, allocations: 7.75 MB / 0.5088 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.4726, allocations: 4 kB / 0.5089 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008458/0.4734, allocations: 239.7 kB / 0.5091 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01372/0.4872, allocations: 3.278 MB / 0.5123 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004335/0.4877, allocations: 47.98 kB / 0.5123 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.028/0.5157, allocations: 14.25 MB / 0.5262 GB, free: 5.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5157, allocations: 0 / 0.5262 GB, free: 5.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01393/0.5297, allocations: 5.028 MB / 0.5312 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004711/0.5302, allocations: 250.7 kB / 0.5314 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004633/0.5306, allocations: 47.88 kB / 0.5314 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001736/0.5324, allocations: 134.9 kB / 0.5316 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007143/0.5331, allocations: 182.7 kB / 0.5317 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002637/0.5334, allocations: 60 kB / 0.5318 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009238/0.5343, allocations: 0.5419 MB / 0.5323 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5343, allocations: 0 / 0.5323 GB, free: 15.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00248/0.5368, allocations: 0.73 MB / 0.533 GB, free: 14.43 MB / 414.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.01453/0.5514, allocations: 5.658 MB / 0.5386 GB, free: 8.734 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01012/0.5615, allocations: 4.087 MB / 0.5426 GB, free: 4.637 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/0.5616, allocations: 5.281 kB / 0.5426 GB, free: 4.633 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006892/0.5685, allocations: 2.561 MB / 0.5451 GB, free: 2.059 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.5702, allocations: 182.4 kB / 0.5452 GB, free: 1.883 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04658/0.6168, allocations: 20.44 MB / 0.5652 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009306/0.6178, allocations: 1.224 MB / 0.5664 GB, free: 11.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008908/0.6187, allocations: 198 kB / 0.5666 GB, free: 11.49 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007865/0.6195, allocations: 0.5461 MB / 0.5671 GB, free: 10.95 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6195, allocations: 0 / 0.5671 GB, free: 10.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2382/0.8577, allocations: 60.92 MB / 0.6266 GB, free: 111 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001398/0.8579, allocations: 259.3 kB / 0.6269 GB, free: 110.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.763/3.621, allocations: 0 / 0.6269 GB, free: 110.7 MB / 446.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)