Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.0008848/0.0008848, allocations: 95.92 kB / 16.3 MB, free: 5.996 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.0008754/0.0008755, allocations: 183.9 kB / 17.2 MB, free: 5.914 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.309/1.309, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3059/0.3059, allocations: 38.07 MB / 330.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003306, allocations: 8 kB / 400.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2706, allocations: 59.16 MB / 459.2 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.004517/0.2751, allocations: 4.89 MB / 464.1 MB, free: 26.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.2772, allocations: 1.481 MB / 465.6 MB, free: 25.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002593/0.2774, allocations: 32.69 kB / 465.6 MB, free: 25.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003571/0.2778, allocations: 121.1 kB / 465.7 MB, free: 25.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006513/0.2785, allocations: 311.9 kB / 466 MB, free: 25.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004395/0.2789, allocations: 172.3 kB / 466.2 MB, free: 25.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004794/0.2794, allocations: 383.9 kB / 466.6 MB, free: 25.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.2797, allocations: 115.6 kB / 466.7 MB, free: 25.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003896/0.2801, allocations: 236 kB / 466.9 MB, free: 25.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006505/0.2807, allocations: 336.3 kB / 467.3 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.607e-05/0.2808, allocations: 24.97 kB / 467.3 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.492e-05/0.2809, allocations: 25.09 kB / 467.3 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002966/0.2812, allocations: 201.4 kB / 467.5 MB, free: 24.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.2814, allocations: 112.9 kB / 467.6 MB, free: 24.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005958/0.282, allocations: 472.9 kB / 468.1 MB, free: 24.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.282, allocations: 1.062 kB / 468.1 MB, free: 24.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.282, allocations: 0 / 468.1 MB, free: 24.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.282, allocations: 0 / 468.1 MB, free: 24.71 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001707/0.2837, allocations: 0.8628 MB / 468.9 MB, free: 24.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.2838, allocations: 8.469 kB / 468.9 MB, free: 24.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.027e-05/0.2839, allocations: 70.52 kB / 469 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.966e-05/0.284, allocations: 54.52 kB / 469.1 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.2851, allocations: 0.5842 MB / 469.7 MB, free: 23.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.2851, allocations: 26.09 kB / 469.7 MB, free: 23.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-05/0.2852, allocations: 45.16 kB / 469.7 MB, free: 23.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.286, allocations: 0.545 MB / 470.3 MB, free: 23.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.286, allocations: 0 / 470.3 MB, free: 23.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.041e-05/0.2861, allocations: 11.56 kB / 470.3 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003347/0.2864, allocations: 98.42 kB / 470.4 MB, free: 23.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005719/0.287, allocations: 353.5 kB / 470.7 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00285/0.2899, allocations: 2.065 MB / 472.8 MB, free: 22.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00078/0.2906, allocations: 387.2 kB / 473.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.2907, allocations: 4.922 kB / 473.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.2907, allocations: 39.94 kB / 473.2 MB, free: 21.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.373e-06/0.2907, allocations: 0 / 473.2 MB, free: 21.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004018/0.2947, allocations: 2.537 MB / 475.7 MB, free: 20.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.2948, allocations: 81.7 kB / 475.8 MB, free: 20.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.2952, allocations: 378.8 kB / 476.2 MB, free: 20.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.2952, allocations: 38.83 kB / 476.2 MB, free: 20.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.2953, allocations: 254.5 kB / 476.5 MB, free: 19.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.2954, allocations: 127.9 kB / 476.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.2955, allocations: 9.094 kB / 476.6 MB, free: 19.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.179e-05/0.2956, allocations: 360.1 kB / 477 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003435/0.2959, allocations: 242.2 kB / 477.2 MB, free: 19.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004081/0.2963, allocations: 366 kB / 477.6 MB, free: 18.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.2968, allocations: 290.9 kB / 477.8 MB, free: 18.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2968, allocations: 1.031 kB / 477.8 MB, free: 18.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001551/0.2983, allocations: 1.008 MB / 478.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.2984, allocations: 6.562 kB / 478.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.2984, allocations: 3.781 kB / 478.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009342/0.2993, allocations: 411.2 kB / 479.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.2996, allocations: 85.02 kB / 479.4 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004036/0.3037, allocations: 4.779 MB / 484.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.304, allocations: 51.81 kB / 484.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.304, allocations: 16 kB / 484.2 MB, free: 14.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002344/0.3043, allocations: 201.8 kB / 484.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.986e-05/0.3043, allocations: 43.48 kB / 484.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.3055, allocations: 0.838 MB / 485.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3055, allocations: 4 kB / 485.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3055, allocations: 8 kB / 485.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3055, allocations: 0 / 485.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.3072, allocations: 1.418 MB / 486.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3072, allocations: 32 / 486.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.3073, allocations: 47.91 kB / 486.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009269/0.3083, allocations: 445.2 kB / 487.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.751e-05/0.3083, allocations: 39.97 kB / 487.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.3116, allocations: 6.304 MB / 493.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3116, allocations: 256 / 493.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.3129, allocations: 1.147 MB / 494.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.531e-05/0.313, allocations: 116.6 kB / 494.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.622e-05/0.3131, allocations: 31.98 kB / 494.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.3133, allocations: 35.94 kB / 494.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.3134, allocations: 35.88 kB / 494.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.3134, allocations: 15.98 kB / 494.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001885/0.3136, allocations: 259.2 kB / 495.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3136, allocations: 0 / 495.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000568/0.3142, allocations: 164 kB / 495.3 MB, free: 2.363 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0014/0.3156, allocations: 1.851 MB / 497.2 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.3169, allocations: 0.8883 MB / 498.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3169, allocations: 0 / 498.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.3183, allocations: 1.083 MB / 499.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004994/0.3188, allocations: 107.6 kB / 499.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006383/0.3252, allocations: 6.765 MB / 0.4942 GB, free: 7.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004249/0.3256, allocations: 0.8898 MB / 0.495 GB, free: 6.426 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.3259, allocations: 72.34 kB / 0.4951 GB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.3261, allocations: 163.4 kB / 0.4952 GB, free: 6.195 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3261, allocations: 0 / 0.4952 GB, free: 6.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.3495, allocations: 11.75 MB / 0.5067 GB, free: 10.66 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/0.3498, allocations: 201.2 kB / 0.5069 GB, free: 10.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.322, allocations: 4 kB / 0.5069 GB, free: 10.41 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat does not exist to compare? outputFormat=mat