Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.000873/0.0008729, allocations: 95.11 kB / 16.3 MB, free: 6.457 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.0009889/0.0009889, allocations: 182 kB / 17.2 MB, free: 6.34 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.313/1.313, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2642/0.2642, allocations: 38.07 MB / 330.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003785, allocations: 8 kB / 400.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2648, allocations: 59.16 MB / 459.2 MB, free: 30.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.004158/0.2691, allocations: 3.844 MB / 463.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2705, allocations: 0.9482 MB / 464 MB, free: 27.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.2707, allocations: 23.41 kB / 464 MB, free: 27.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.2709, allocations: 39.55 kB / 464.1 MB, free: 27.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004179/0.2713, allocations: 172.2 kB / 464.2 MB, free: 27.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/0.2715, allocations: 84.36 kB / 464.3 MB, free: 27.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.2719, allocations: 218.1 kB / 464.5 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.2721, allocations: 77.58 kB / 464.6 MB, free: 26.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.2723, allocations: 140.2 kB / 464.7 MB, free: 26.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.2726, allocations: 134.2 kB / 464.9 MB, free: 26.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.2726, allocations: 11.31 kB / 464.9 MB, free: 26.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.21e-05/0.2727, allocations: 11.16 kB / 464.9 MB, free: 26.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.2728, allocations: 67.11 kB / 465 MB, free: 26.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.656e-05/0.2729, allocations: 75.69 kB / 465 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.2731, allocations: 206 kB / 465.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.2732, allocations: 0 / 465.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2732, allocations: 0 / 465.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.2732, allocations: 1 kB / 465.2 MB, free: 26.62 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008838/0.2741, allocations: 0.5538 MB / 465.8 MB, free: 26.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.2741, allocations: 10.25 kB / 465.8 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.987e-05/0.2742, allocations: 55.08 kB / 465.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.488e-05/0.2742, allocations: 30.55 kB / 465.9 MB, free: 26.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004673/0.2747, allocations: 318.4 kB / 466.2 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2747, allocations: 16.81 kB / 466.2 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.2749, allocations: 28.7 kB / 466.2 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.2753, allocations: 294.7 kB / 466.5 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2753, allocations: 5.094 kB / 466.5 MB, free: 25.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.2753, allocations: 11.22 kB / 466.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.2754, allocations: 5.375 kB / 466.6 MB, free: 25.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.2757, allocations: 183.4 kB / 466.7 MB, free: 25.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.2771, allocations: 1.282 MB / 468 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.2774, allocations: 129.3 kB / 468.1 MB, free: 24.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.2774, allocations: 5.438 kB / 468.1 MB, free: 24.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.2774, allocations: 40.56 kB / 468.2 MB, free: 24.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.2774, allocations: 0 / 468.2 MB, free: 24.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007772/0.2782, allocations: 0.5277 MB / 468.7 MB, free: 23.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.2782, allocations: 105.8 kB / 468.8 MB, free: 23.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.2785, allocations: 237.8 kB / 469.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.2785, allocations: 39.08 kB / 469.1 MB, free: 23.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.2786, allocations: 198.5 kB / 469.3 MB, free: 23.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.2786, allocations: 40.52 kB / 469.3 MB, free: 23.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.2786, allocations: 5.156 kB / 469.3 MB, free: 23.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.077e-05/0.2787, allocations: 335.8 kB / 469.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.791e-05/0.2788, allocations: 40.69 kB / 469.7 MB, free: 23.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.2789, allocations: 133.7 kB / 469.8 MB, free: 22.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.08e-05/0.279, allocations: 59.97 kB / 469.9 MB, free: 22.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.279, allocations: 0 / 469.9 MB, free: 22.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003647/0.2793, allocations: 237.7 kB / 470.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2794, allocations: 8.031 kB / 470.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2794, allocations: 2.531 kB / 470.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001115/0.2795, allocations: 27.25 kB / 470.2 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003445/0.2799, allocations: 63.86 kB / 470.2 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.2799, allocations: 4.297 kB / 470.2 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.28, allocations: 9.375 kB / 470.2 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.28, allocations: 13.27 kB / 470.2 MB, free: 22.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.2801, allocations: 159.8 kB / 470.4 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/0.2802, allocations: 23.8 kB / 470.4 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.2805, allocations: 150 kB / 470.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2805, allocations: 2.594 kB / 470.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2805, allocations: 1.281 kB / 470.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2805, allocations: 1.078 kB / 470.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.2809, allocations: 290.6 kB / 470.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2809, allocations: 5.344 kB / 470.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.281, allocations: 31.8 kB / 470.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2811, allocations: 1.938 kB / 470.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.2811, allocations: 6.969 kB / 470.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2811, allocations: 1.094 kB / 470.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2811, allocations: 1.719 kB / 470.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003537/0.2814, allocations: 405.1 kB / 471.3 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.2815, allocations: 95.86 kB / 471.4 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.2815, allocations: 7.453 kB / 471.4 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.2817, allocations: 4.906 kB / 471.4 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.2817, allocations: 12.64 kB / 471.4 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.2817, allocations: 8.047 kB / 471.4 MB, free: 21.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.2819, allocations: 170 kB / 471.6 MB, free: 21.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2819, allocations: 4.062 kB / 471.6 MB, free: 21.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003465/0.2823, allocations: 45.81 kB / 471.6 MB, free: 21.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004895/0.2828, allocations: 1.074 MB / 472.7 MB, free: 20.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003068/0.2831, allocations: 213.3 kB / 472.9 MB, free: 20.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2831, allocations: 1.031 kB / 472.9 MB, free: 20.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.676e-05/0.2832, allocations: 56.03 kB / 473 MB, free: 20.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.2836, allocations: 53.19 kB / 473 MB, free: 20.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.2861, allocations: 3.546 MB / 476.6 MB, free: 17.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.2864, allocations: 0.7763 MB / 477.4 MB, free: 16.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.2865, allocations: 28.05 kB / 477.4 MB, free: 16.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.2867, allocations: 89.91 kB / 477.5 MB, free: 16.76 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2867, allocations: 0 / 477.5 MB, free: 16.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.3079, allocations: 4.551 MB / 482 MB, free: 15.26 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.3081, allocations: 209.1 kB / 482.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.225, allocations: 1.344 kB / 482.2 MB, free: 15.02 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat does not exist to compare? outputFormat=mat