Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.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.OneSourceThreeLinesThreeLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads",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.001086/0.001086, allocations: 102.4 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.00107/0.001071, allocations: 188.5 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04595/0.04595, allocations: 8.096 MB / 299.2 MB, free: 6.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 67.89 kB / 361.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2032, allocations: 51.5 MB / 413.3 MB, free: 25.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads): time 0.002623/0.2059, allocations: 2.248 MB / 415.6 MB, free: 23.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.2075, allocations: 1.66 MB / 417.3 MB, free: 21.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.2076, allocations: 8 kB / 417.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003349/0.2079, allocations: 151.1 kB / 417.4 MB, free: 21.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003265/0.2083, allocations: 194.8 kB / 417.6 MB, free: 21.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.2096, allocations: 0.9604 MB / 418.6 MB, free: 20.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000311/0.2099, allocations: 418 kB / 419 MB, free: 19.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.2101, allocations: 133.4 kB / 419.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.2102, allocations: 171.3 kB / 419.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.2104, allocations: 219.1 kB / 419.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.591e-05/0.2105, allocations: 39.94 kB / 419.5 MB, free: 19.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000309/0.2108, allocations: 219.8 kB / 419.7 MB, free: 19.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.08e-05/0.2108, allocations: 83.61 kB / 419.8 MB, free: 19.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.211, allocations: 199 kB / 420 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.2114, allocations: 0.5336 MB / 420.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2114, allocations: 0 / 420.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2114, allocations: 4 kB / 420.5 MB, free: 18.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.2114, allocations: 0 / 420.5 MB, free: 18.37 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003357/0.2148, allocations: 1.146 MB / 421.7 MB, free: 17.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.2148, allocations: 19.88 kB / 421.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.614e-05/0.2149, allocations: 66.67 kB / 421.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.842e-05/0.215, allocations: 40.47 kB / 421.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.2153, allocations: 323.5 kB / 422.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.2153, allocations: 24.94 kB / 422.2 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/0.2154, allocations: 28.38 kB / 422.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.2159, allocations: 421.3 kB / 422.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2159, allocations: 3.938 kB / 422.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.2159, allocations: 12 kB / 422.6 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.216, allocations: 8 kB / 422.6 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004651/0.2164, allocations: 418.1 kB / 423 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/0.2181, allocations: 1.538 MB / 424.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009817/0.2191, allocations: 0.5568 MB / 425.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.2194, allocations: 281.5 kB / 425.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-05/0.2195, allocations: 12.36 kB / 425.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.2195, allocations: 46.92 kB / 425.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.543e-06/0.2195, allocations: 4 kB / 425.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.00419/0.2237, allocations: 1.639 MB / 427.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.2237, allocations: 63.41 kB / 427.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.224, allocations: 274.6 kB / 427.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.472e-05/0.224, allocations: 37.7 kB / 427.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.792e-05/0.2241, allocations: 157 kB / 427.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.536e-05/0.2242, allocations: 161.6 kB / 427.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.2243, allocations: 94.23 kB / 427.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.81e-05/0.2244, allocations: 350.7 kB / 428.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.2247, allocations: 265 kB / 428.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.225, allocations: 273 kB / 428.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006822/0.2257, allocations: 0.5819 MB / 429.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2257, allocations: 0 / 429.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002032/0.2278, allocations: 1.024 MB / 430.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2278, allocations: 4 kB / 430.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2278, allocations: 4 kB / 430.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/0.2295, allocations: 434.1 kB / 430.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.2298, allocations: 75.89 kB / 430.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005229/0.235, allocations: 6.112 MB / 437 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/0.2354, allocations: 39.53 kB / 437 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.2355, allocations: 19.98 kB / 437 MB, free: 1.082 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.2356, allocations: 158.6 kB / 437.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.605e-05/0.2357, allocations: 39.56 kB / 437.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/0.2378, allocations: 0.9977 MB / 438.2 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2379, allocations: 4 kB / 438.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.2379, allocations: 3.938 kB / 438.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.2379, allocations: 3.984 kB / 438.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005662/0.2384, allocations: 0.5598 MB / 438.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2385, allocations: 4 kB / 438.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.2387, allocations: 59.91 kB / 438.8 MB, free: 15.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001757/0.2404, allocations: 426.1 kB / 439.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.2405, allocations: 12 kB / 439.3 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006343/0.2468, allocations: 6.041 MB / 445.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2468, allocations: 0 / 445.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.249, allocations: 1.013 MB / 446.3 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.023e-05/0.2491, allocations: 120.5 kB / 446.4 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.657e-05/0.2492, allocations: 15.94 kB / 446.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.2496, allocations: 27.97 kB / 446.5 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.041e-05/0.2497, allocations: 36.39 kB / 446.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.2497, allocations: 20.23 kB / 446.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.2499, allocations: 202 kB / 446.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2499, allocations: 0 / 446.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005818/0.2505, allocations: 163.9 kB / 446.9 MB, free: 6.637 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002529/0.2531, allocations: 1.593 MB / 448.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.2552, allocations: 1.111 MB / 449.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.2552, allocations: 0 / 449.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.2565, allocations: 0.7601 MB / 450.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.257, allocations: 46.91 kB / 450.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007778/0.2648, allocations: 4.735 MB / 455.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.2651, allocations: 0.7974 MB / 455.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001887/0.2653, allocations: 50.92 kB / 456 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.2655, allocations: 119.4 kB / 456.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2655, allocations: 0 / 456.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05385/0.3193, allocations: 14.23 MB / 470.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/13.76, allocations: 10.06 kB / 470.3 MB, free: 15.12 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe 2>&1)